add: new button in admin & cabine
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user