Skip to content

Commit

Permalink
fix: POST/user/refresh 반환코드 수정 (#399)
Browse files Browse the repository at this point in the history
* fix: 반환코드 수정

* fix: 테스트 수정
  • Loading branch information
kwoo28 authored and Choi-JJunho committed May 9, 2024
1 parent 89b1953 commit 5aa810c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public ResponseEntity<UserTokenRefreshResponse> refresh(
@RequestBody @Valid UserTokenRefreshRequest request
) {
UserTokenRefreshResponse tokenGroupResponse = userService.refresh(request);
return ResponseEntity.ok().body(tokenGroupResponse);
return ResponseEntity.created(URI.create("/"))
.body(tokenGroupResponse);
}

@DeleteMapping("/user")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void userRefreshToken() {
.when()
.post("/user/refresh")
.then()
.statusCode(HttpStatus.OK.value())
.statusCode(HttpStatus.CREATED.value())
.extract();

UserToken token = tokenRepository.findById(user.getId()).get();
Expand Down

0 comments on commit 5aa810c

Please sign in to comment.