File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed
Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1818import com .oronaminc .join .member .domain .MemberType ;
1919import com .oronaminc .join .member .security .MemberDetails ;
2020
21+ import io .swagger .v3 .oas .annotations .tags .Tag ;
2122import jakarta .servlet .http .HttpServletRequest ;
2223import jakarta .servlet .http .HttpSession ;
2324import lombok .RequiredArgsConstructor ;
2425
2526@ RestController
27+ @ Tag (name = "개발용 API" )
2628@ RequestMapping ("/dev" )
2729@ RequiredArgsConstructor
2830public class DevController {
Original file line number Diff line number Diff line change 1+ package com .oronaminc .join .global .dev ;
2+
3+ import org .springframework .http .HttpStatus ;
4+ import org .springframework .web .bind .annotation .GetMapping ;
5+ import org .springframework .web .bind .annotation .ResponseStatus ;
6+ import org .springframework .web .bind .annotation .RestController ;
7+
8+ import io .swagger .v3 .oas .annotations .Operation ;
9+ import io .swagger .v3 .oas .annotations .tags .Tag ;
10+
11+ @ RestController
12+ @ Tag (name = "개발용 API" )
13+ public class HealthController {
14+
15+ @ Operation (summary = "애플리케이션 헬스체크" )
16+ @ ResponseStatus (HttpStatus .OK )
17+ @ GetMapping ("/health" )
18+ public String health () {
19+ return "Server is Healthy!" ;
20+ }
21+
22+ @ Operation (summary = "홈 헬스체크" )
23+ @ ResponseStatus (HttpStatus .OK )
24+ @ GetMapping ("/" )
25+ public String home () {
26+ return "It's Home!" ;
27+ }
28+ }
Original file line number Diff line number Diff line change @@ -49,5 +49,16 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4949 .logout (withDefaults ())
5050 .build ();
5151 }
52+ //
53+ // @Bean
54+ // public WebSecurityCustomizer webSecurityCustomizer() {
55+ // return web -> web.ignoring()
56+ // .requestMatchers(
57+ // "/public/**",
58+ // "/favicon.ico",
59+ // "/swagger-ui/**",
60+ // "/v3/api-docs/**"
61+ // );
62+ // }
5263
5364}
You can’t perform that action at this time.
0 commit comments