added initial members list

This commit is contained in:
2025-09-15 10:38:31 -04:00
parent 1d4d469a0b
commit 3da4d33167
20 changed files with 601 additions and 22 deletions

19
ui/src/api/member.ts Normal file
View File

@@ -0,0 +1,19 @@
export type Member = {
member_id: number;
member_name: string;
rank: string | null;
rank_date: string | null;
status: string | null;
status_date: string | null;
};
const addr = "localhost:3000"
export async function getMembers(): Promise<Member[]> {
const response = await fetch(`http://${addr}/members`);
if (!response.ok) {
throw new Error("Failed to fetch members");
}
return response.json();
}