chore: add new features cabine & admin

This commit is contained in:
2026-03-06 11:47:19 +01:00
parent 0dff4ea4f0
commit 7c739f0a64
5 changed files with 112 additions and 3 deletions
+7
View File
@@ -117,6 +117,13 @@ export const deleteCommand = async (commandId: number) => {
return { success: true, message: data.message };
};
export const notifyClientToDescendCabine = async (commandId: number) => {
const { data } = await apiClient.post(
`${API}/commands/${commandId}/notify-client`,
);
return { success: true, message: data.message, client_username: data.client_username };
};
export const getCabineLivreursList = async (): Promise<
{ id: number; username: string }[]
> => {