Working delete shifts functionality
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { get, put, post } from "./baseApi";
|
||||
import { get, put, post, del } from "./baseApi";
|
||||
|
||||
export function createCShifts(postBodies) {
|
||||
return Promise.all(
|
||||
@@ -23,3 +23,7 @@ export function getCShift(uuid, params) {
|
||||
export function editCShift(uuid, payload) {
|
||||
return put(`/cshift/${uuid}/`, payload).then(resp => Promise.resolve(resp));
|
||||
}
|
||||
|
||||
export function deleteCShift(uuid) {
|
||||
return del(`/cshift/${uuid}/`).then(resp => Promise.resolve(resp));
|
||||
}
|
||||
|
Reference in New Issue
Block a user