Skip to content

Commit

Permalink
fix: 로그 아웃 실수한거 다시 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
maiload committed Sep 7, 2024
1 parent 0b14ead commit 738bb66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ResponseEntity<Object> login(@Valid @RequestBody LogInRequest logInReques
@ApiResponse(responseCode = "204", description = "Logout successful, no content", content = @Content),
@ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content)
})
@GetMapping("/logout")
@PostMapping("/logout")
public ResponseEntity<Void> logout(HttpServletRequest request, HttpServletResponse response) {
userService.logOutUser(request, response);
return SuccessResponse.noContent();
Expand All @@ -67,7 +67,7 @@ public ResponseEntity<Void> logout(HttpServletRequest request, HttpServletRespon
@ApiResponse(responseCode = "200", description = "Token reissued successfully", content = @Content(schema = @Schema(implementation = String.class))),
@ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content),
})
@PostMapping("/reissue")
@GetMapping("/reissue")
public ResponseEntity<Object> reissue(HttpServletRequest request, HttpServletResponse response) {
TokenInfo tokenInfo = userService.reissueToken(request, response);
return SuccessResponse.ok(tokenInfo.accessToken());
Expand Down

0 comments on commit 738bb66

Please sign in to comment.