upd: project

Deskripsi:
- tambah project

- update tb project

NO Issues
This commit is contained in:
amel
2024-08-23 17:34:35 +08:00
parent 5417b48af1
commit df2f61e833
22 changed files with 769 additions and 565 deletions

View File

@@ -7,6 +7,9 @@ export const funGetAllProject = async (path?: string) => {
}
export const funCreateProject = async (data: IFormProject) => {
if (data.title.length < 3)
return { success: false, message: 'Nama proyek minimal 3 karakter' }
const response = await fetch(`/api/project`, {
method: "POST",
headers: {