We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd5030 commit 7eadd33Copy full SHA for 7eadd33
src/main/kotlin/site/katchup/springboot/controller/HealthCheckController.kt
@@ -1,13 +1,16 @@
1
package site.katchup.springboot.controller
2
3
+import org.springframework.http.ResponseEntity
4
import org.springframework.web.bind.annotation.GetMapping
5
import org.springframework.web.bind.annotation.RestController
6
+import site.katchup.springboot.global.message.SuccessMessage
7
+import site.katchup.springboot.global.response.BaseResponse
8
9
@RestController
10
class HealthCheckController {
11
12
@GetMapping("/health")
- fun healthCheck(): String {
- return "OK"
13
+ fun healthCheck(): ResponseEntity<BaseResponse<String>> {
14
+ return BaseResponse.ok(SuccessMessage.SUCCESS_HEALTH_CHECK, "OK")
15
}
16
0 commit comments