21 lines
494 B
Java
21 lines
494 B
Java
package de.ph87.homeautomation;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@RequestMapping("server")
|
|
@RequiredArgsConstructor
|
|
public class ServerController {
|
|
|
|
private final ServerService serverService;
|
|
|
|
@GetMapping("shutdown")
|
|
public void shutdown() {
|
|
serverService.shutdown();
|
|
}
|
|
|
|
}
|