This commit is contained in:
darius 2025-02-25 22:42:02 +01:00
parent d6a3783b20
commit d8e7d44253
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -56,7 +56,7 @@ func EditProject(project *ent.Project) g.Node {
b.ImgSq64, b.ImgSq64,
), ),
), ),
Input(Type("hidden"), Value(strconv.Itoa(project.ID)), e.Name("project_id")), Input(e.Type("hidden"), e.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.Label("Name"), b.Label("Name"),
b.Textarea(project.Name, b.Rows(1), e.Name("project_name")), b.Textarea(project.Name, b.Rows(1), e.Name("project_name")),