Skip to content

Commit

Permalink
feat: FindCasper시작 시간 fetch DTO 구현 (CC-155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkkkk committed Aug 14, 2024
1 parent c4a9605 commit ca0bf15
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Caecae/src/stories/getFindingGameStartTime.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import huynxios from "../shared/Hyunxios";

interface Response {
responseCode: number;
message: string;
data: Data;
}

interface Data {
findingGameInfos: FindingGameInfo[];
recentGameIndex: number;
nextGameIndex: number;
}

interface FindingGameInfo {
startTime: number[];
endTime: number[];
numberOfWinners: number;
}

export default async function getFindingGameStartTime() {
const response = await huynxios.get<Response>("/api/finding/info");

return response;
}

0 comments on commit ca0bf15

Please sign in to comment.