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