Skip to content

Commit

Permalink
♻️refcator : Controller uri 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo committed May 29, 2024
1 parent f38b85f commit 8d506b3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.web.bind.annotation.*;

@RequiredArgsConstructor
@RequestMapping("/api/v1/noti")
@RequestMapping("/noti")
@RestController
public class NotificationController {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping(value = "/setting")
@RequestMapping(value = "/user/setting")
public class SettingController {

private final SettingService settingService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping(value = "/survey")
@RequestMapping(value = "/user/survey")
public class SurveyController {

private final SurveyService surveyService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping(value = "/")
@RequestMapping(value = "/user")
public class UserController {

private final UserService userService;
Expand Down Expand Up @@ -96,4 +96,11 @@ public ApiResponse<String> deleteUser(@AuthUser User user) {
userService.deleteUser(user);
return ApiResponse.onSuccess(user.getEmail() + "님의 계정이 성공적으로 탈퇴되었습니다.");
}


//Swagger용 가짜 컨트롤러
@PostMapping("/login")
public ApiResponse<JwtDto> login(@RequestBody UserReqDto.LoginRequestDto loginRequestDto) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v1/weather")
@RequestMapping("/weather")
public class WeatherController {

private final WeatherService weatherService;
Expand Down

0 comments on commit 8d506b3

Please sign in to comment.