fix
This commit is contained in:
parent
6f3217f28b
commit
d01011c266
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user