Fix
This commit is contained in:
parent
80088c0dc3
commit
3cedaf5f50
1 changed files with 32 additions and 35 deletions
|
@ -19,13 +19,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@EnableAutoConfiguration
|
||||
@RequestMapping("/thermostatState")
|
||||
public class ThermostatStateController {
|
||||
|
||||
@RestController
|
||||
@EnableAutoConfiguration
|
||||
@RequestMapping("/thermostatState")
|
||||
public class SwitchableStateController {
|
||||
|
||||
@Autowired private ThermostatStateRepository thermostatStateService;
|
||||
|
||||
@GetMapping
|
||||
|
@ -63,5 +61,4 @@ public class ThermostatStateController {
|
|||
public void delete(@PathVariable("id") long id) {
|
||||
thermostatStateService.deleteById(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue