This commit is contained in:
trochas
2026-01-07 18:02:38 +01:00
23 changed files with 287 additions and 106 deletions

View File

@@ -149,7 +149,7 @@ export async function getSessionsAPI(): Promise<Session[]> {
}
export async function getUsersAPI(): Promise<User[]> {
try {
const response = await api.get<User[]>("/users");
const response = await api.get<User[]>("/coach/all");
return response.data;
} catch (error) {
console.error("Error fetching users:", error);