add: new button in admin & cabine

This commit is contained in:
2026-03-06 12:35:45 +01:00
parent 7c739f0a64
commit 0930950f5f
3 changed files with 147 additions and 3 deletions
+7
View File
@@ -130,6 +130,13 @@ export const getCommandItems = async (commandId: number) => {
};
};
export const deleteCommand = async (commandId: number) => {
const { data } = await apiClient.delete(
`${V2}/admin/protected/orders/${commandId}`,
);
return { success: true, message: data.message };
};
export const deleteCommandItem = async (commandId: number, itemId: number) => {
const { data } = await apiClient.delete(
`${V2}/admin/protected/orders/${commandId}/items/${itemId}`,