File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/inha/gdgoc/domain/user/controller Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919import org .springframework .web .bind .annotation .PostMapping ;
2020import org .springframework .web .bind .annotation .RequestBody ;
2121import org .springframework .web .bind .annotation .RequestMapping ;
22+ import org .springframework .web .bind .annotation .RequestParam ;
2223import org .springframework .web .bind .annotation .RestController ;
2324
2425@ RequestMapping ("/api/v1" )
@@ -31,9 +32,10 @@ public class UserController {
3132 // TODO 진짜 돌았냐? POST로 바꿔라
3233 @ GetMapping ("/auth/check" )
3334 public ResponseEntity <ApiResponse <CheckDuplicatedEmailResponse , Void >> checkDuplicatedEmail (
34- @ RequestBody CheckDuplicatedEmailRequest checkDuplicatedEmailRequest
35+ @ RequestParam String email
3536 ) {
36- CheckDuplicatedEmailResponse response = userService .isExistsByEmail (checkDuplicatedEmailRequest );
37+ CheckDuplicatedEmailResponse response =
38+ userService .isExistsByEmail (new CheckDuplicatedEmailRequest (email ));
3739
3840 return ResponseEntity .ok (ApiResponse .ok (USER_EMAIL_DUPLICATION_RETRIEVED_SUCCESS , response ));
3941 }
You can’t perform that action at this time.
0 commit comments