add status endpoint

This commit is contained in:
lokesh 2026-01-29 21:41:55 -06:00
parent ab1d5364a0
commit a5f0b432b1

View file

@ -18,6 +18,8 @@ package org.springframework.samples.petclinic.system;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
class WelcomeController {
@ -26,5 +28,10 @@ class WelcomeController {
public String welcome() {
return "welcome";
}
@GetMapping("/status")
@ResponseBody
public String welcome() {
return "Application is running";
}
}