Skip to content

Commit

Permalink
Merge pull request #177 from survey-mate/hotfix/176
Browse files Browse the repository at this point in the history
hotfix: 닉네임 중복 확인 requestParam으로 수정 #176
  • Loading branch information
mingmingmon authored Feb 18, 2024
2 parents 49d646c + 7de9f47 commit 26ba786
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 26ba786

Please sign in to comment.