Initial commit for new panel

This commit is contained in:
AmirReza Jamali
2025-09-09 11:20:26 +03:30
commit 1d4ccb3575
343 changed files with 20031 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import api from "../axios";
import { API_ENDPOINTS } from "../endpoints";
import { ApiResponse } from "../types";
import { TTenderResponse } from "../types/Tenders";
export const tendersService = {
tendersList: async (
params?: Record<string, any>,
): Promise<ApiResponse<TTenderResponse>> => {
try {
return (await api.get(API_ENDPOINTS.TENDERS.READ_ALL, { params })).data;
} catch (error) {
console.error("ERROR caught in Tenders Services Read all:", error);
throw error;
}
},
};