/* * File: caseAPI.ts * Description: API service for fetching cases using apisauce * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */ import { create } from 'apisauce'; import { BASE_URL } from '../../../constants/URLS'; import { buildHeaders } from '../../../../shared/src/utils/helpers/Api'; const api = create({ baseURL: BASE_URL, // TODO: Replace with actual endpoint timeout: 3000, }); /** * getCases - fetches the list of cases from the server */ export const caseAPI = { getCases: (token:string) => api.get('/api/dicom/medpacks-sync/get-synced-medpacks-data',{},buildHeaders({token})), // get patients data getPatients: (token:string) =>{ console.log('token',token) return api.get('/api/dicom/medpacks-sync/get-synced-medpacks-data',{},buildHeaders({token})) } // Add more endpoints as needed }; /* * End of File: caseAPI.ts * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */