Lots of changes
This commit is contained in:
@ -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)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user