refacto: Displaying number of players for each team + adding logo at registration
This commit is contained in:
@@ -99,3 +99,15 @@ export async function apiFetchVictoryPoints() {
|
||||
if (!res.ok) throw new Error("vp_fetch_failed");
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function apiFetchPlayerCounts() {
|
||||
const res = await fetch("/api/auth/player-counts");
|
||||
if (!res.ok) throw new Error("player_counts_fetch_failed");
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function apiFetchActivePlayers() {
|
||||
const res = await fetch("/api/active-players");
|
||||
if (!res.ok) throw new Error("active_players_fetch_failed");
|
||||
return res.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user