Changed API path for get button

This commit is contained in:
Alexis Leboeuf
2026-01-07 13:52:31 +01:00
parent 2e06c53b62
commit 57cd52ca3d

View File

@@ -141,7 +141,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);