Fix
This commit is contained in:
parent
80088c0dc3
commit
3cedaf5f50
1 changed files with 32 additions and 35 deletions
|
@ -19,12 +19,10 @@ 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;
|
||||||
|
|
||||||
public class ThermostatStateController {
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@EnableAutoConfiguration
|
@EnableAutoConfiguration
|
||||||
@RequestMapping("/thermostatState")
|
@RequestMapping("/thermostatState")
|
||||||
public class SwitchableStateController {
|
public class ThermostatStateController {
|
||||||
|
|
||||||
@Autowired private ThermostatStateRepository thermostatStateService;
|
@Autowired private ThermostatStateRepository thermostatStateService;
|
||||||
|
|
||||||
|
@ -64,4 +62,3 @@ public class ThermostatStateController {
|
||||||
thermostatStateService.deleteById(id);
|
thermostatStateService.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue