This commit is contained in:
Louis Mazin 2026-09-19 23:22:03 +02:00
parent 6f3217f28b
commit d01011c266

View File

@ -11,6 +11,16 @@ export const timeApi = {
} }
}, },
// Get all users (admin only)
getUsers: async () => {
try {
const response = await api.get('/users/');
return response.data;
} catch (error) {
throw new Error('Failed to fetch users: ' + error.message);
}
},
// Create a new time entry // Create a new time entry
createTimeEntry: async (entryData) => { createTimeEntry: async (entryData) => {
try { try {