From 738bb66722cbe533726ed602e78abe5023ca1cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=A7=84?= Date: Sat, 7 Sep 2024 09:30:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=20=EC=95=84=EC=9B=83?= =?UTF-8?q?=20=EC=8B=A4=EC=88=98=ED=95=9C=EA=B1=B0=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ktbgratitudediary/controller/UserController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ktb/hackathon/ktbgratitudediary/controller/UserController.java b/src/main/java/ktb/hackathon/ktbgratitudediary/controller/UserController.java index aafd61a..2150092 100644 --- a/src/main/java/ktb/hackathon/ktbgratitudediary/controller/UserController.java +++ b/src/main/java/ktb/hackathon/ktbgratitudediary/controller/UserController.java @@ -56,7 +56,7 @@ public ResponseEntity 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 logout(HttpServletRequest request, HttpServletResponse response) { userService.logOutUser(request, response); return SuccessResponse.noContent(); @@ -67,7 +67,7 @@ public ResponseEntity 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 reissue(HttpServletRequest request, HttpServletResponse response) { TokenInfo tokenInfo = userService.reissueToken(request, response); return SuccessResponse.ok(tokenInfo.accessToken());