Compare commits

...

2 Commits

Author SHA1 Message Date
darius
4679a85e09 added id to edit
All checks were successful
build and deploy portfolio / build (push) Successful in 36s
build and deploy portfolio / publish-portfolio (push) Successful in 3s
build and deploy portfolio / publish-docs (push) Successful in 4s
2025-02-25 23:10:19 +01:00
darius
d8e7d44253 cors fix 2025-02-25 23:07:48 +01:00
2 changed files with 4 additions and 3 deletions

View File

@ -41,8 +41,9 @@ func main() {
http.MethodPatch,
http.MethodDelete,
},
AllowedHeaders: []string{"*"},
AllowedHeaders: []string{"Authorization", "Content-Type", "*"},
AllowCredentials: true,
Debug: true,
})
//init api routes

View File

@ -56,8 +56,8 @@ func EditProject(project *ent.Project) g.Node {
b.ImgSq64,
),
),
Input(Type("hidden"), Value(strconv.Itoa(project.ID)), e.Name("project_id")),
//b.Label("ID: "+strconv.Itoa(project.ID), Name("project_id")),
b.Label("ID: "+strconv.Itoa(project.ID), Name("project_id")),
b.Textarea(project.ID, b.Rows(1), e.Name("project_id")),
b.Label("Name"),
b.Textarea(project.Name, b.Rows(1), e.Name("project_name")),
b.Subtitle(