| 1234567 |
- import { getRequest, patchRequest, postRequest, replaceInUrl } from './index';
- import apiEndpoints from './apiEndpoints';
-
- export const getAllScrappes = () => getRequest(apiEndpoints.scrappe.getAll)
- export const getByIdScrappe = (id) => getRequest(replaceInUrl(apiEndpoints.scrappe.getById, { id }))
- export const createScrappes = (scrappe) => postRequest(apiEndpoints.scrappe.create, scrappe)
- export const executeScrappes = (id) => patchRequest(replaceInUrl(apiEndpoints.scrappe.execute, { id }))
|