Skip to content

Commit 7eadd33

Browse files
committed
refactor: BaseResponse로 health check 리팩토링
1 parent efd5030 commit 7eadd33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
package site.katchup.springboot.controller
22

3+
import org.springframework.http.ResponseEntity
34
import org.springframework.web.bind.annotation.GetMapping
45
import org.springframework.web.bind.annotation.RestController
6+
import site.katchup.springboot.global.message.SuccessMessage
7+
import site.katchup.springboot.global.response.BaseResponse
58

69
@RestController
710
class HealthCheckController {
811

912
@GetMapping("/health")
10-
fun healthCheck(): String {
11-
return "OK"
13+
fun healthCheck(): ResponseEntity<BaseResponse<String>> {
14+
return BaseResponse.ok(SuccessMessage.SUCCESS_HEALTH_CHECK, "OK")
1215
}
1316
}

0 commit comments

Comments
 (0)