Skip to content

Commit

Permalink
refactor: 마지막 업로드 시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xxoznge committed Oct 1, 2024
1 parent 823e0b7 commit 724c45f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ public ApiResponse<CardDetailGetResponse> getCardDetail(
return ApiResponse.onSuccess(cardQueryService.getCardDetail(authUser, cardId));
}

/* 타입 별 카드 마지막 업로드 시간 조회 */
@GetMapping("/last")
public ApiResponse<String> getLastUploadTime(
@RequestParam(name = "type") FortuneType type) {
String lastUploadTime = cardQueryService.getLastUploadTime(type);
return ApiResponse.onSuccess(lastUploadTime);
}

/* 카드 삭제 */
@DeleteMapping("/{cardId}")
public ApiResponse<String> deleteCard(
Expand Down

0 comments on commit 724c45f

Please sign in to comment.