Skip to content

Commit

Permalink
fix: fix status response code
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jul 16, 2024
1 parent 0d39f89 commit ff9cc95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public SmeemResponse<GenerateTokenResponse> generateToken(Principal principal) {
return SmeemResponse.of(authUseCase.generateToken(memberId), SmeemMessage.GENERATE_TOKEN);
}

@ResponseStatus(HttpStatus.NO_CONTENT)
@ResponseStatus(HttpStatus.OK)
@PostMapping("/sign-out")
public SmeemResponse<?> signOut(Principal principal) {
val memberId = smeemConverter.toMemberId(principal);
authUseCase.signOut(memberId);
return SmeemResponse.of(SmeemMessage.SIGNED_OUT);
}

@ResponseStatus(HttpStatus.NO_CONTENT)
@ResponseStatus(HttpStatus.OK)
@DeleteMapping
public SmeemResponse<?> withdraw(Principal principal, @RequestBody(required = false) WithdrawRequest request) {
val memberId = smeemConverter.toMemberId(principal);
Expand Down

0 comments on commit ff9cc95

Please sign in to comment.