diff --git a/src/api/config.ts b/src/api/config.ts index f21fd1a..72689ea 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -253,7 +253,7 @@ export const SALES_REPORT_SO_NAMES = [ // --- Pipeline Endpoints --- export const PIPELINE = { endpoints: { - nearestStores: '/api/p/krishna-group/v1/nearest-stores', + nearestStores: '/api/papi2/nearest-stores', dailySalesReport: '/api/papi2/daily-sales-report', productiveCallSummary: '/api/papi2/productive-call-summary', salesOfficers: '/api/papi2/sales-officers' diff --git a/src/components/maps/NearestStoresMap.tsx b/src/components/maps/NearestStoresMap.tsx index 19ff54d..a6ab6ba 100644 --- a/src/components/maps/NearestStoresMap.tsx +++ b/src/components/maps/NearestStoresMap.tsx @@ -64,7 +64,11 @@ export function NearestStoresMap() { method: 'POST', headers: { 'accept': 'application/json, text/plain, */*', - 'content-type': 'application/json' + 'content-type': 'application/json', + 'groupid': '25', + 'orgid': '57', + 'templateid': '189', + 'x-pipeline-version': 'latest' }, body: JSON.stringify({ latitude: lat,