riseup-squad21/services/exceptionApi.mjs

8 lines
269 B
JavaScript

import { api } from "./api.mjs";
export const exceptionsService = {
list: () => api.get("/rest/v1/doctor_exceptions"),
create: (data) => api.post("/rest/v1/doctor_exceptions", data),
delete: (id) => api.delete(`/rest/v1/doctor_exceptions?id=eq.${id}`),
};