Adds display of Team members

This commit is contained in:
2026-05-18 17:12:43 -05:00
parent 6e4edd96ce
commit 86866f4db7
4 changed files with 84 additions and 8 deletions

View File

@@ -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) =>

View File

@@ -51,3 +51,8 @@ export interface HunterLeaderboardResponse {
hunterName: string
score: number
}
export interface HunterSummaryResponse {
id: string
name: string
}