File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/main/java/com/oronaminc/join Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33import java .util .List ;
44
5+ import org .springframework .context .annotation .Profile ;
56import org .springframework .http .HttpStatus ;
67import org .springframework .security .authentication .UsernamePasswordAuthenticationToken ;
78import org .springframework .security .core .Authentication ;
2324import jakarta .servlet .http .HttpSession ;
2425import lombok .RequiredArgsConstructor ;
2526
27+ @ Profile ("local" )
2628@ RestController
2729@ Tag (name = "개발용 API" )
2830@ RequestMapping ("/dev" )
Original file line number Diff line number Diff line change 99import io .swagger .v3 .oas .annotations .tags .Tag ;
1010
1111@ RestController
12- @ Tag (name = "개발용 API" )
12+ @ Tag (name = "헬스체크 API" )
1313public class HealthController {
1414
1515 @ Operation (summary = "애플리케이션 헬스체크" )
@@ -19,7 +19,7 @@ public String health() {
1919 return "Server is Healthy!" ;
2020 }
2121
22- @ Operation (summary = "홈 헬스체크 " )
22+ @ Operation (summary = "홈" )
2323 @ ResponseStatus (HttpStatus .OK )
2424 @ GetMapping ("/" )
2525 public String home () {
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4747 "/ws/**" ,
4848 "/api/auth/guest" ,
4949 "/api/auth/kakao" ,
50- "/login"
50+ "/login" ,
51+ "/health"
5152 )
5253 .permitAll ()
5354 .anyRequest ()
You can’t perform that action at this time.
0 commit comments