diff --git a/lib/api/promotions.ts b/lib/api/promotions.ts index 81b0783..f682142 100644 --- a/lib/api/promotions.ts +++ b/lib/api/promotions.ts @@ -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 => { - return apiClient.get('/promotions', token); + return apiClient.get('/admin/promotions', token); }, // Get single promotion