Skip to content

Commit

Permalink
Merge pull request #23 from KusitmsHDmedi/feature/22-global
Browse files Browse the repository at this point in the history
[refactor] 코드 정리
  • Loading branch information
RyuKwanKon authored Sep 15, 2023
2 parents f691496 + 4b1ce22 commit 2b2c0fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class AuthController {

@GetMapping("/authCode")
public ResponseEntity<BaseResponse<?>> 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));
Expand All @@ -46,10 +45,10 @@ public ResponseEntity<BaseResponse<?>> signUp(@RequestHeader("Authorization") fi
.body(BaseResponse.of(SuccessCode.CREATED, responseDto));
}

@GetMapping("/signIn/guest")
@PostMapping("/signIn/guest")
public ResponseEntity<BaseResponse<?>> 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));
}
}

0 comments on commit 2b2c0fd

Please sign in to comment.