upd: project

Deskripsi:
- delete project yg telah dibatalkan
- akses fitur by user role
- tampilan text yg panjang

No Issues
This commit is contained in:
amel
2025-05-15 12:08:24 +08:00
parent a877eec078
commit 9b05c6220c
11 changed files with 174 additions and 80 deletions

View File

@@ -32,13 +32,11 @@ export const apiGetBanner = async ({ user }: { user: string }) => {
export const apiCreateBanner = async (data: FormData) => {
console.log('jalan', data)
const response = await api.post('mobile/banner', data, {
headers: {
'Content-Type': 'multipart/form-data',
},
})
console.log('api',response.data)
return response.data;
};
@@ -294,4 +292,9 @@ export const apiCreateProject = async (data: FormData) => {
},
})
return response.data;
};
export const apiDeleteProject = async (data: { user: string }, id: string) => {
const response = await api.delete(`/mobile/project/${id}/lainnya`, { data })
return response.data;
};