Allows for editing Hunt details
This commit is contained in:
@@ -35,6 +35,9 @@ export const apiGetAllHunts = (status?: 'UNSTARTED' | 'ONGOING' | 'CLOSED') =>
|
||||
export const apiCreateHunt = (title: string, startDateTime: string, endDateTime: string) =>
|
||||
client.post<HuntResponse>('/hunt', { title, startDateTime, endDateTime })
|
||||
|
||||
export const apiUpdateHunt = (huntId: string, title: string, startDateTime: string, endDateTime: string, isTerminated: boolean) =>
|
||||
client.patch<HuntResponse>(`/hunt/${huntId}`, { title, startDateTime, endDateTime, isTerminated })
|
||||
|
||||
// ── Hunter ────────────────────────────────────────────────────────────────────
|
||||
|
||||
export const apiGetOngoingHunts = () =>
|
||||
|
||||
Reference in New Issue
Block a user