Adds display of Team members
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {BASE_URL, client} from './client'
|
||||
import type {
|
||||
HunterLeaderboardResponse,
|
||||
HunterSummaryResponse,
|
||||
HuntResponse,
|
||||
ItemResponse,
|
||||
LoginResponse,
|
||||
@@ -60,6 +61,9 @@ export const apiCreateTeam = (huntId: string, name: string) =>
|
||||
export const apiGetTeam = (huntId: string, teamId: string) =>
|
||||
client.get<TeamResponse>(`/hunt/${huntId}/team/${teamId}`)
|
||||
|
||||
export const apiGetTeamHunters = (huntId: string, teamId: string) =>
|
||||
client.get<HunterSummaryResponse[]>(`/hunt/${huntId}/team/${teamId}/hunter`)
|
||||
|
||||
// ── Items ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
export const apiGetItems = (huntId: string) =>
|
||||
|
||||
@@ -51,3 +51,8 @@ export interface HunterLeaderboardResponse {
|
||||
hunterName: string
|
||||
score: number
|
||||
}
|
||||
|
||||
export interface HunterSummaryResponse {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user