This commit is contained in:
omenem 2020-04-17 18:28:42 +02:00
parent 80088c0dc3
commit 3cedaf5f50

View File

@ -19,13 +19,11 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController
@EnableAutoConfiguration
@RequestMapping("/thermostatState")
public class ThermostatStateController { public class ThermostatStateController {
@RestController
@EnableAutoConfiguration
@RequestMapping("/thermostatState")
public class SwitchableStateController {
@Autowired private ThermostatStateRepository thermostatStateService; @Autowired private ThermostatStateRepository thermostatStateService;
@GetMapping @GetMapping
@ -63,5 +61,4 @@ public class ThermostatStateController {
public void delete(@PathVariable("id") long id) { public void delete(@PathVariable("id") long id) {
thermostatStateService.deleteById(id); thermostatStateService.deleteById(id);
} }
}
} }