upd: project
Deskripsi: - mengeluarkan anggota - link ke profile anggota - tambah anggota No Issues
This commit is contained in:
11
lib/api.ts
11
lib/api.ts
@@ -276,4 +276,15 @@ export const apiGetProjectTask = async ({ user, id }: { user: string, id: string
|
||||
export const apiEditProjectTask = async ({ data, id }: { data: { title: string, dateStart: string, user: string, dateEnd: string }, id: string }) => {
|
||||
const response = await api.post(`/mobile/project/detail/${id}`, data)
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiDeleteProjectMember = async (data: { user: string, idUser: string }, id: string) => {
|
||||
const response = await api.delete(`mobile/project/${id}/member`, { data })
|
||||
return response.data
|
||||
};
|
||||
|
||||
|
||||
export const apiAddMemberProject = async ({ data, id }: { data: { user: string, member: any[] }, id: string }) => {
|
||||
const response = await api.post(`/mobile/project/${id}/member`, data)
|
||||
return response.data;
|
||||
};
|
||||
Reference in New Issue
Block a user