Skip to content

Commit

Permalink
Fix [#119] 헬스체크 API 수정 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusYoo authored Jul 17, 2024
2 parents f8bad35 + 3e642ff commit 8e91b16
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.sopt.jaksim.auth.UserAuthentication;
import org.sopt.jaksim.auth.jwt.JwtTokenProvider;
import org.springframework.core.env.Environment;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -19,9 +20,7 @@ public class HealthCheckController {
@GetMapping("/profile")
@Operation(summary = "active profile 확인 API", description = "active profile을 확인하는 일종의 Health Check API입니다.")
public String getProfile() {
return Arrays.stream(env.getActiveProfiles())
.findFirst()
.orElse(NULL);
return "UP";
}

}

0 comments on commit 8e91b16

Please sign in to comment.