Skip to content

Commit

Permalink
* 토큰갱신 재발급 요청 맵핑방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gunsight1 committed Mar 4, 2024
1 parent 2342840 commit ac7885b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -22,7 +23,7 @@ public class AuthController {

private final AuthService authService;

@GetMapping("/reissuanceJWT")
@PostMapping("/reissuanceJWT")
public ResponseEntity<ApiResponse<AuthDto>> reissuanceJWT(HttpServletRequest request){
log.info("Current Client IP :: "+getClientIP(request));
return ApiResponse.toResponseEntity(SUCCESS_REQUEST_REGENERATED_JWT, AuthDto.of(authService.generateTokenAndSaveAuth(request)));
Expand Down

0 comments on commit ac7885b

Please sign in to comment.