Skip to content

Commit 60a537f

Browse files
committed
[FEAT] /api url 추가
1 parent 88ea1d6 commit 60a537f

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/fitfit/HelloController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
@CrossOrigin(origins = "https://fitfit.site")
99
public class HelloController {
1010

11-
@GetMapping("/hello") // 1. HTTP GET 요청을 '/hello' 경로와 매핑
11+
@GetMapping("api/hello") // 1. HTTP GET 요청을 '/hello' 경로와 매핑
1212
public String getHelloMessage() {
1313
// 2. "환영합니다!" 라는 문자열을 반환
1414
return "환영합니다!";
1515
}
1616
}
17+

src/main/java/fitfit/domain/token/filter/JwtAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
2929
"/v3/api-docs/**",
3030
"/members/auth/kko",
3131
"/auth/refresh",
32-
"/**"
32+
"/api"
3333
);
3434

3535
private final JwtProvider jwtProvider;

src/main/java/fitfit/global/security/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public SecurityFilterChain filterChain (HttpSecurity http) throws Exception {
3939
"/v3/api-docs/**",
4040
"/members/auth/kko",
4141
"/auth/refresh",
42-
"/**"
42+
"/api"
4343
).permitAll()
4444
.anyRequest().authenticated()
4545
)

0 commit comments

Comments
 (0)