Skip to content

Commit

Permalink
Merge pull request #250 from gunsight1/hotfix_modified_token_reissuan…
Browse files Browse the repository at this point in the history
…ce_request_type_change

hotfix ::  토큰갱신 재발급 요청 맵핑방식 변경
  • Loading branch information
gunsight1 authored Mar 4, 2024
2 parents 2342840 + ac7885b commit 406a356
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 406a356

Please sign in to comment.