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

@ -1,17 +1,16 @@
package server;
package server.api;
import org.springframework.stereotype.Controller;
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;
@Controller
@RestController
@RequestMapping("/")
public class SomeController {
public class HealthCheckController {
@GetMapping("/")
@ResponseBody
public String index() {
return "Hello world!";
return "Server is online!";
}
}