Skip to content

Commit

Permalink
(feat: health-check 코드 수정)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooh9992 authored Feb 24, 2024
1 parent d5f1e10 commit ba8463f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.petgoorm.backend.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class StatusCheckController {

@GetMapping("/health")
public ResponseEntity<Void> checkHealthStatus() {
log.info("로드밸런서 /health 경로 접속");
return new ResponseEntity<>(HttpStatus.OK);
}
}

0 comments on commit ba8463f

Please sign in to comment.