From 4b1ce225db01115b656305021ab8197cafb9ffb3 Mon Sep 17 00:00:00 2001 From: RyuKwanKon Date: Fri, 15 Sep 2023 23:48:41 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20#22=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=20log=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hdmedi_server/domain/user/controller/AuthController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/kusithm/hdmedi_server/domain/user/controller/AuthController.java b/src/main/java/com/kusithm/hdmedi_server/domain/user/controller/AuthController.java index 96fd14a..5b20ae0 100644 --- a/src/main/java/com/kusithm/hdmedi_server/domain/user/controller/AuthController.java +++ b/src/main/java/com/kusithm/hdmedi_server/domain/user/controller/AuthController.java @@ -24,7 +24,6 @@ public class AuthController { @GetMapping("/authCode") public ResponseEntity> createAuthCode(@AuthenticatedUserId final HDmediUser hDmediUser) { - System.out.println(hDmediUser.getId() + "+" + hDmediUser.getIsGuest()); final AuthCodeResponseDto responseDto = authService.createAuthCode(hDmediUser); return ResponseEntity.status(HttpStatus.OK) .body(BaseResponse.of(SuccessCode.OK, responseDto)); @@ -46,10 +45,10 @@ public ResponseEntity> signUp(@RequestHeader("Authorization") fi .body(BaseResponse.of(SuccessCode.CREATED, responseDto)); } - @GetMapping("/signIn/guest") + @PostMapping("/signIn/guest") public ResponseEntity> guestSignIn(@RequestHeader("Authorization") final String authCode) { final GuestSignInResponseDto responseDto = authService.geustSignIn(authCode); - return ResponseEntity.status(HttpStatus.OK) + return ResponseEntity.status(HttpStatus.CREATED) .body(BaseResponse.of(SuccessCode.CREATED, responseDto)); } }