Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RequiredArgsConstructor
public enum TokenType {
ACCESS(Duration.ofMinutes(5)),
ACCESS(Duration.ofMinutes(30)),
REFRESH(Duration.ofDays(7)),
SIGN_IN(Duration.ofMinutes(1)),
SIGN_OUT(Duration.ZERO);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public ApiResponse<String> updateBasicInfo(
}

@Secured({"ROLE_VOLUNTEER", "ROLE_CENTER"})
@PutMapping("/image/volunteer")
@PutMapping("/image")
@Operation(summary = "유저 프로필 이미지 수정", description = "프로필 이미지를 수정합니다. 응답으로 제공되는 URL에 이미지를 PUT 해야 합니다.")
public ApiResponse<String> updateImage(
@UserId UUID userId,
@Valid @RequestBody ImgUrlRequestDto imgUrlRequestDto
) {
updateProfileImgUrlUseCase.update(userId, imgUrlRequestDto);
return ApiResponse.ok("프로필 이미지 수정 완료");
return ApiResponse.ok(updateProfileImgUrlUseCase.update(userId, imgUrlRequestDto),
"프로필 이미지 수정 완료");
}
}