Lots of changes

This commit is contained in:
2023-12-02 22:16:16 -05:00
parent 16704aeeb1
commit c5df026d04
16 changed files with 135 additions and 122 deletions

View File

@ -12,15 +12,15 @@ func RegisterRoutes(f *flamego.Flame) {
// index routes
f.Get("/", routes.GetDashboard)
// project routes
f.Group("/project", func() {
// test routes
f.Group("/test", func() {
f.Get("", func(c flamego.Context) {
c.Redirect("/project/list")
c.Redirect("/test/list")
})
f.Get("/list", routes.ProjectGetList)
f.Get("/list", routes.TestGetList)
f.Get("/create", routes.ProjectGetCreate)
f.Post("/create", binding.Form(forms.ProjectForm{}), routes.ProjectPostCreate)
f.Get("/create", routes.TestGetCreate)
f.Post("/create", binding.Form(forms.TestForm{}), routes.TestPostCreate)
})
}