fix: promotion

This commit is contained in:
2026-07-10 09:45:58 +03:30
parent 3c0098ceab
commit 05262b7636
+2 -2
View File
@@ -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