|
|
@@ -0,0 +1,21 @@
|
|
|
+package com.tsi.app.server.controller;
|
|
|
+
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+public class HealthController {
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/health")
|
|
|
+ public Map<String, String> healthCheck() {
|
|
|
+ Map<String, String> response = new HashMap<>();
|
|
|
+ response.put("status", "ok");
|
|
|
+ return response;
|
|
|
+ }
|
|
|
+}
|