Added route to view hardware component
This commit is contained in:
@ -22,6 +22,8 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
|
||||
f.Get("/create", routes.HardwareGetCreate)
|
||||
f.Post("/create", binding.Form(forms.HardwareForm{}), routes.HardwarePostCreate)
|
||||
|
||||
f.Get("/{hardware_id}", routes.HardwareGetView)
|
||||
})
|
||||
|
||||
// test routes
|
||||
|
Reference in New Issue
Block a user