Added hardware routes and views
This commit is contained in:
@ -12,6 +12,18 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
// index routes
|
||||
f.Get("/", routes.GetDashboard)
|
||||
|
||||
// hardware routes
|
||||
f.Group("/hardware", func() {
|
||||
f.Get("", func(c flamego.Context) {
|
||||
c.Redirect("/hardware/list")
|
||||
})
|
||||
|
||||
f.Get("/list", routes.HardwareGetList)
|
||||
|
||||
f.Get("/create", routes.HardwareGetCreate)
|
||||
f.Post("/create", binding.Form(forms.HardwareForm{}), routes.HardwarePostCreate)
|
||||
})
|
||||
|
||||
// test routes
|
||||
f.Group("/test", func() {
|
||||
f.Get("", func(c flamego.Context) {
|
||||
|
Reference in New Issue
Block a user