Added hardware routes and views

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 7c13b1f209
commit 93778274c2
7 changed files with 144 additions and 1 deletions

View File

@ -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) {