feat: depoly model advanced
This commit is contained in:
@@ -29,3 +29,10 @@ export async function deleteWorker(id: string | number) {
|
||||
method: 'DELETE'
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateWorker(id: string | number, data: any) {
|
||||
return request(`${WORKERS_API}/${id}`, {
|
||||
method: 'PUT',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user