Skip to content

Commit

Permalink
[etc] health check controller 추가 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojinyou authored Mar 3, 2024
1 parent eb0cc24 commit 40aeda5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/kotlin/com/mjucow/eatda/health/HealthCheckController.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.mjucow.eatda.health

import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseStatus
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/health-check")
class HealthCheckController {

@GetMapping
@ResponseStatus(HttpStatus.OK)
fun healthCheck(): String {
return "ok"
}

}

0 comments on commit 40aeda5

Please sign in to comment.