Skip to content

Commit

Permalink
[#235] refactor: url 변경 및 엑세스토큰도 가능한지 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sss4920 committed Mar 26, 2024
1 parent a5bd7c5 commit 338a704
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public ApiResponse withdraw(@UserId Long userId) {
return ApiResponse.success(Success.DELETE_USER_SUCCESS);
}

@PostMapping("/token-vaild")
@PostMapping("/token/health")
@ResponseStatus(HttpStatus.OK)
public ApiResponse<TokenHealthDto> checkHealthOfToken(@RequestHeader String refreshToken) {
return ApiResponse.success(Success.TOKEN_HEALTH_CHECKED_SUCCESS, authService.checkHealthOfToken(refreshToken));
public ApiResponse<TokenHealthDto> checkHealthOfToken(@RequestHeader String token) {
return ApiResponse.success(Success.TOKEN_HEALTH_CHECKED_SUCCESS, authService.checkHealthOfToken(token));
}
}

0 comments on commit 338a704

Please sign in to comment.