8 lines
224 B
JavaScript
8 lines
224 B
JavaScript
import CONFIG from "../../core/сonfig.js";
|
||
|
||
const addPatient = async (api, patient) => {
|
||
const response = await api.post(`${CONFIG.BASE_URL}/patients/`, patient);
|
||
return response.data;
|
||
};
|
||
|
||
export default addPatient; |