From dcfbcbd226eae73fff1a5f6f04d595f476440cd6 Mon Sep 17 00:00:00 2001 From: soomanbaek Date: Mon, 23 Oct 2023 20:50:11 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=A4=84=EB=B0=94=EA=BF=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blacktokkies/toquiz/domain/member/api/AuthApi.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/blacktokkies/toquiz/domain/member/api/AuthApi.java b/src/main/java/blacktokkies/toquiz/domain/member/api/AuthApi.java index 6ec5c65..8f72fd5 100644 --- a/src/main/java/blacktokkies/toquiz/domain/member/api/AuthApi.java +++ b/src/main/java/blacktokkies/toquiz/domain/member/api/AuthApi.java @@ -29,8 +29,10 @@ ResponseEntity signUp(@RequestBody @Valid SignUpRequest signUpRe } @PostMapping("/api/auth/login") - ResponseEntity> login(@RequestBody @Valid LoginRequest loginRequest, - HttpServletResponse httpResponse) { + ResponseEntity> login( + HttpServletResponse httpResponse, + @RequestBody @Valid LoginRequest loginRequest + ){ AuthenticateResponse loginResponse = authService.login(loginRequest); httpResponse.addCookie(cookieService.issueActiveInfoIdCookieByEmail(loginResponse.getEmail())); @@ -52,7 +54,6 @@ ResponseEntity logout( return ResponseEntity.ok(SuccessMessage.LOGOUT); } - @PostMapping("api/auth/resign") public ResponseEntity deleteMyInfo( @RequestBody @Valid ResignRequest request, @@ -80,4 +81,4 @@ ResponseEntity> refresh( return ResponseEntity.ok(new SuccessResponse<>(refreshResponse)); } -} +} \ No newline at end of file