feat: Adding the name of capturers of planets + displaying usernames for each team
This commit is contained in:
@@ -108,6 +108,12 @@ export async function apiFetchActivePlayers() {
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function apiFetchActivePlayerNames() {
|
||||
const res = await fetch("/api/active-players/names");
|
||||
if (!res.ok) throw new Error("active_player_names_fetch_failed");
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function apiFetchMilitaryDeductions() {
|
||||
const res = await fetch("/api/military-deductions");
|
||||
if (!res.ok) throw new Error("military_deductions_fetch_failed");
|
||||
|
||||
Reference in New Issue
Block a user