feat : modification de la page employé WIP + ajout d'une navbar

This commit is contained in:
2026-03-02 09:50:09 +01:00
parent 107417a571
commit ea06059c0b
9 changed files with 375 additions and 85 deletions

View File

@@ -21,6 +21,11 @@ export const listScopedEmployees = async () => {
return extractItems<Employee>(data)
}
export const getEmployee = async (id: number) => {
const api = useApi()
return api.get<Employee>(`/employees/${id}`, {}, { toast: false })
}
export const createEmployee = async (payload: {
firstName: string
lastName: string