Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JinhyeokFang authored Feb 18, 2024
2 parents 4d18256 + 26ba786 commit d25dc04
Show file tree
Hide file tree
Showing 2 changed files with 8 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
5 changes: 5 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ jwt:
token-prefix: Bearer

server:
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
port: ${PORT}

0 comments on commit d25dc04

Please sign in to comment.