Added route to view hardware component

This commit is contained in:
Gregory Ballantine
2024-05-29 08:37:51 -04:00
parent 4ad9a92306
commit dcfc6e0115
3 changed files with 21 additions and 1 deletions

View File

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