From c7e6aaf44d5b60a25e0784d2ac27944f36ddebe0 Mon Sep 17 00:00:00 2001 From: aiaiaiai1 Date: Sun, 2 Jun 2024 20:53:49 +0900 Subject: [PATCH] feat: add api of checking server health --- .../gymmi/controller/HealthCheckController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/java/gymmi/controller/HealthCheckController.java diff --git a/src/main/java/gymmi/controller/HealthCheckController.java b/src/main/java/gymmi/controller/HealthCheckController.java new file mode 100644 index 0000000..0093d39 --- /dev/null +++ b/src/main/java/gymmi/controller/HealthCheckController.java @@ -0,0 +1,13 @@ +package gymmi.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class HealthCheckController { + + @GetMapping("/health-check") + public String checkingHealth() { + return "OK"; + } +}