Skip to content

Commit

Permalink
HOTFIX: health-check api 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnnoh committed Jul 14, 2024
1 parent ae5d431 commit 346dc7a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -31,4 +33,9 @@ public class AuthController {
public ResponseEntity<JwtResponse> login(@RequestParam(value = "token") String token) {
return ResponseEntity.ok(authService.getUserInfo(token));
}

@GetMapping("/health-check")
public ResponseEntity<Void> checkHealthStatus() {
return new ResponseEntity<>(HttpStatus.OK);
}
}

0 comments on commit 346dc7a

Please sign in to comment.