customSchedules.js 317 B

1234567891011
  1. import api from 'src/api'
  2. export const createCustomSchedule = async (payload) => {
  3. const { data } = await api.post('/custom-schedule', payload)
  4. return data
  5. }
  6. export const acceptProposal = async (proposalId) => {
  7. const response = await api.post(`/custom-schedule/${proposalId}/accept`)
  8. return response.data
  9. }