fix: wrong api route
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user