Changed SomeController to be a health check

This commit is contained in:
Oskar Rasieński 2026-01-08 01:49:21 +01:00
commit 64dd5e4a28

View 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!";
}
}