Changed SomeController to be a health check
This commit is contained in:
parent
04f58c22cc
commit
64dd5e4a28
1 changed files with 5 additions and 6 deletions
16
server/src/main/java/server/api/HealthCheckController.java
Normal file
16
server/src/main/java/server/api/HealthCheckController.java
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
package server.api;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/")
|
||||||
|
public class HealthCheckController {
|
||||||
|
@GetMapping("/")
|
||||||
|
@ResponseBody
|
||||||
|
public String index() {
|
||||||
|
return "Server is online!";
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue