Skip to content

Commit

Permalink
[refactor] HealthCheckController kotlin class로 교체
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Mar 4, 2024
1 parent 2e834a9 commit 9777379
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.pophory.pophoryapi

import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@Tag(name = "[Health Check] 서버 상태 확인 API")
class HealthCheckController {
@GetMapping("/health")
@Operation(summary = "health check API", description = "항상 OK를 반환합니다.")
fun healthCheck() : ResponseEntity<String> {
return ResponseEntity.ok("OK");
}

}

0 comments on commit 9777379

Please sign in to comment.