diff --git a/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java b/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java index a8419997..80a13357 100644 --- a/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java +++ b/noti-service/src/main/java/com/waither/notiservice/api/NotificationController.java @@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.*; @RequiredArgsConstructor -@RequestMapping("/api/v1/noti") +@RequestMapping("/noti") @RestController public class NotificationController { diff --git a/user-service/src/main/java/com/waither/userservice/config/SecurityConfig.java b/user-service/src/main/java/com/waither/userservice/config/SecurityConfig.java index 82bde1d1..481ea931 100644 --- a/user-service/src/main/java/com/waither/userservice/config/SecurityConfig.java +++ b/user-service/src/main/java/com/waither/userservice/config/SecurityConfig.java @@ -73,7 +73,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti // Jwt Filter (with login) JwtAuthenticationFilter loginFilter = new JwtAuthenticationFilter( authenticationManager(authenticationConfiguration), jwtUtil); - loginFilter.setFilterProcessesUrl("/login"); + loginFilter.setFilterProcessesUrl("/user/login"); http .addFilterAt(loginFilter, UsernamePasswordAuthenticationFilter.class); diff --git a/user-service/src/main/java/com/waither/userservice/controller/SettingController.java b/user-service/src/main/java/com/waither/userservice/controller/SettingController.java index 5f55849d..9a69a8af 100644 --- a/user-service/src/main/java/com/waither/userservice/controller/SettingController.java +++ b/user-service/src/main/java/com/waither/userservice/controller/SettingController.java @@ -14,7 +14,7 @@ @Slf4j @RequiredArgsConstructor @RestController -@RequestMapping(value = "/setting") +@RequestMapping(value = "/user/setting") public class SettingController { private final SettingService settingService; diff --git a/user-service/src/main/java/com/waither/userservice/controller/SurveyController.java b/user-service/src/main/java/com/waither/userservice/controller/SurveyController.java index 803564eb..138a982d 100644 --- a/user-service/src/main/java/com/waither/userservice/controller/SurveyController.java +++ b/user-service/src/main/java/com/waither/userservice/controller/SurveyController.java @@ -12,7 +12,7 @@ @Slf4j @RequiredArgsConstructor @RestController -@RequestMapping(value = "/survey") +@RequestMapping(value = "/user/survey") public class SurveyController { private final SurveyService surveyService; diff --git a/user-service/src/main/java/com/waither/userservice/controller/UserController.java b/user-service/src/main/java/com/waither/userservice/controller/UserController.java index 8460b2fb..f5ab8272 100644 --- a/user-service/src/main/java/com/waither/userservice/controller/UserController.java +++ b/user-service/src/main/java/com/waither/userservice/controller/UserController.java @@ -17,7 +17,7 @@ @Slf4j @RequiredArgsConstructor @RestController -@RequestMapping(value = "/") +@RequestMapping(value = "/user") public class UserController { private final UserService userService; @@ -96,4 +96,11 @@ public ApiResponse deleteUser(@AuthUser User user) { userService.deleteUser(user); return ApiResponse.onSuccess(user.getEmail() + "님의 계정이 성공적으로 탈퇴되었습니다."); } + + + //Swagger용 가짜 컨트롤러 + @PostMapping("/login") + public ApiResponse login(@RequestBody UserReqDto.LoginRequestDto loginRequestDto) { + return null; + } } diff --git a/weather-service/src/main/java/com/waither/weatherservice/controller/WeatherController.java b/weather-service/src/main/java/com/waither/weatherservice/controller/WeatherController.java index cd2ee637..67cd546f 100644 --- a/weather-service/src/main/java/com/waither/weatherservice/controller/WeatherController.java +++ b/weather-service/src/main/java/com/waither/weatherservice/controller/WeatherController.java @@ -14,7 +14,7 @@ @RequiredArgsConstructor @RestController -@RequestMapping("/api/v1/weather") +@RequestMapping("/weather") public class WeatherController { private final WeatherService weatherService;