diff --git a/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java b/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java index 37b9805..b1a2eed 100644 --- a/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java +++ b/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import uk.jinhy.survey_mate_api.auth.application.dto.AuthServiceDTO; import uk.jinhy.survey_mate_api.auth.application.service.AuthService; @@ -158,10 +159,10 @@ public ApiResponse updateNickname( Status.OK.getMessage(), null); } - @GetMapping("/nickname/{nickname}") + @GetMapping("/nickname/check") @Operation(summary = "닉네임 중복 확인") public ApiResponse checkNickname( - @PathVariable("nickname") String nickname) { + @RequestParam(name = "nickname") String nickname) { boolean isExist = authService.checkNickname(nickname); AuthControllerDTO.IsNicknameExistResponseDTO responseDTO = AuthControllerDTO.IsNicknameExistResponseDTO.builder()