Added route to view hardware component

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 93778274c2
commit 62654b9a3e
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