fix: promotion
This commit is contained in:
@@ -2,9 +2,9 @@ import { apiClient } from './client';
|
||||
import { Promotion, CreatePromotionData, UpdatePromotionData, ApiResponse } from '@/types/promotion';
|
||||
|
||||
export const promotionsApi = {
|
||||
// Get all promotions
|
||||
// Get all promotions for admin (includes inactive/expired ones)
|
||||
getPromotions: async (token: string): Promise<Promotion[]> => {
|
||||
return apiClient.get<Promotion[]>('/promotions', token);
|
||||
return apiClient.get<Promotion[]>('/admin/promotions', token);
|
||||
},
|
||||
|
||||
// Get single promotion
|
||||
|
||||
Reference in New Issue
Block a user