upd: task file
Deskripsi: - hapus file task divisi No Issues
This commit is contained in:
@@ -119,4 +119,14 @@ export const funEditTask = async (path: string, data: { title: string }) => {
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
return await response.json().catch(() => null);
|
||||
};
|
||||
|
||||
export const funDeleteFileTask = async (path: string) => {
|
||||
const response = await fetch(`/api/task/file/${path}`, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
return await response.json().catch(() => null);
|
||||
};
|
||||
Reference in New Issue
Block a user