We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0abadec + d3e192a commit 9676b73Copy full SHA for 9676b73
src/main/java/inha/gdgoc/domain/user/controller/UserController.java
@@ -31,9 +31,10 @@ public class UserController {
31
// TODO 진짜 돌았냐? POST로 바꿔라
32
@GetMapping("/auth/check")
33
public ResponseEntity<ApiResponse<CheckDuplicatedEmailResponse, Void>> checkDuplicatedEmail(
34
- @RequestBody CheckDuplicatedEmailRequest checkDuplicatedEmailRequest
+ @RequestParam String email
35
) {
36
- CheckDuplicatedEmailResponse response = userService.isExistsByEmail(checkDuplicatedEmailRequest);
+ CheckDuplicatedEmailResponse response =
37
+ userService.isExistsByEmail(new CheckDuplicatedEmailRequest(email));
38
39
return ResponseEntity.ok(ApiResponse.ok(USER_EMAIL_DUPLICATION_RETRIEVED_SUCCESS, response));
40
}
0 commit comments