Create/Update worktypes
This commit is contained in:
@@ -46,6 +46,13 @@ export function put(url, data) {
|
||||
.catch(error => Promise.reject(error));
|
||||
}
|
||||
|
||||
export function patch(url, data) {
|
||||
return apiInstance
|
||||
.patch(url, data, { headers: headers() })
|
||||
.then(response => response.data)
|
||||
.catch(error => Promise.reject(error));
|
||||
}
|
||||
|
||||
export function del(url) {
|
||||
return apiInstance
|
||||
.delete(url, { headers: headers() })
|
||||
|
Reference in New Issue
Block a user