| 1 | {"ast":null,"code":"import apiClient from './api';\nconst ENDPOINT = '/doctors';\nexport const doctorService = {\n getAllDoctors: () => apiClient.get(ENDPOINT),\n getDoctorById: id => apiClient.get(`${ENDPOINT}/${id}`),\n getDoctorByEmail: email => apiClient.get(`${ENDPOINT}/email/${email}`),\n getDoctorsByDepartment: departmentId => apiClient.get(`${ENDPOINT}/department/${departmentId}`),\n getDoctorsBySpecialization: specializationId => apiClient.get(`${ENDPOINT}/specialization/${specializationId}`),\n getDoctorsByLevel: levelId => apiClient.get(`${ENDPOINT}/level/${levelId}`),\n createDoctor: doctor => apiClient.post(ENDPOINT, doctor),\n updateDoctor: (id, doctor) => apiClient.put(`${ENDPOINT}/${id}`, doctor)\n};","map":{"version":3,"names":["apiClient","ENDPOINT","doctorService","getAllDoctors","get","getDoctorById","id","getDoctorByEmail","email","getDoctorsByDepartment","departmentId","getDoctorsBySpecialization","specializationId","getDoctorsByLevel","levelId","createDoctor","doctor","post","updateDoctor","put"],"sources":["C:/Users/User/Downloads/medora5/frontend/src/services/doctorService.js"],"sourcesContent":["import apiClient from './api';\n\nconst ENDPOINT = '/doctors';\n\nexport const doctorService = {\n getAllDoctors: () => apiClient.get(ENDPOINT),\n\n getDoctorById: (id) => apiClient.get(`${ENDPOINT}/${id}`),\n\n getDoctorByEmail: (email) => apiClient.get(`${ENDPOINT}/email/${email}`),\n\n getDoctorsByDepartment: (departmentId) => apiClient.get(`${ENDPOINT}/department/${departmentId}`),\n\n getDoctorsBySpecialization: (specializationId) => apiClient.get(`${ENDPOINT}/specialization/${specializationId}`),\n\n getDoctorsByLevel: (levelId) => apiClient.get(`${ENDPOINT}/level/${levelId}`),\n\n createDoctor: (doctor) => apiClient.post(ENDPOINT, doctor),\n\n updateDoctor: (id, doctor) => apiClient.put(`${ENDPOINT}/${id}`, doctor),\n};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,OAAO;AAE7B,MAAMC,QAAQ,GAAG,UAAU;AAE3B,OAAO,MAAMC,aAAa,GAAG;EAC3BC,aAAa,EAAEA,CAAA,KAAMH,SAAS,CAACI,GAAG,CAACH,QAAQ,CAAC;EAE5CI,aAAa,EAAGC,EAAE,IAAKN,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,IAAIK,EAAE,EAAE,CAAC;EAEzDC,gBAAgB,EAAGC,KAAK,IAAKR,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,UAAUO,KAAK,EAAE,CAAC;EAExEC,sBAAsB,EAAGC,YAAY,IAAKV,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,eAAeS,YAAY,EAAE,CAAC;EAEjGC,0BAA0B,EAAGC,gBAAgB,IAAKZ,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,mBAAmBW,gBAAgB,EAAE,CAAC;EAEjHC,iBAAiB,EAAGC,OAAO,IAAKd,SAAS,CAACI,GAAG,CAAC,GAAGH,QAAQ,UAAUa,OAAO,EAAE,CAAC;EAE7EC,YAAY,EAAGC,MAAM,IAAKhB,SAAS,CAACiB,IAAI,CAAChB,QAAQ,EAAEe,MAAM,CAAC;EAE1DE,YAAY,EAAEA,CAACZ,EAAE,EAAEU,MAAM,KAAKhB,SAAS,CAACmB,GAAG,CAAC,GAAGlB,QAAQ,IAAIK,EAAE,EAAE,EAAEU,MAAM;AACzE,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |
|---|