upd: project dan task
Deskripsi: - tambah project - perbaiki task No Issues
This commit is contained in:
@@ -31,12 +31,13 @@ export const funGetAllMemberById = async (path?: string) => {
|
||||
}
|
||||
|
||||
|
||||
export const funDeleteDetailProject = async (path: string) => {
|
||||
export const funDeleteDetailProject = async (path: string, data: { idProject: string }) => {
|
||||
const response = await fetch(`/api/project/detail/${path}`, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user