21 lines
481 B
JavaScript
21 lines
481 B
JavaScript
const URL = window.BASE_URL + "/one-api/mockup/clinic/fo/";
|
|
|
|
export async function search(search) {
|
|
try {
|
|
var resp = await axios.post(URL + 'conf/search',{search:search});
|
|
if (resp.status != 200) {
|
|
return {
|
|
status: "ERR",
|
|
message: resp.statusText
|
|
};
|
|
}
|
|
let data = resp.data;
|
|
return data;
|
|
} catch(e) {
|
|
return {
|
|
status: "ERR",
|
|
message: e.message
|
|
};
|
|
}
|
|
}
|