Compare commits

..
1 Commits
Author SHA1 Message Date
Amirmahdi 05262b7636 fix: promotion 2026-07-10 09:45:58 +03:30
+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