You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scrappe.js 497B

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