fix: wrong api route

This commit is contained in:
hamid zarghami
2025-10-07 12:14:26 +03:30
parent 443709b406
commit bc9aac7fc4
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export const createCoupon = async (
};
export const deleteCoupon = async (couponId: string): Promise<void> => {
await axios.delete(`/admin/coupon/${couponId}`);
await axios.delete(`/admin/coupon/${couponId}/delete`);
};
export const getCouponDetail = async (