Added route to view hardware component

This commit is contained in:
Gregory Ballantine 2024-05-29 08:40:02 -04:00
parent 5b14721b14
commit 9fd6ec6b0b

View File

@ -30,7 +30,7 @@ func HardwareGetView(c flamego.Context, t template.Template, data template.Data)
// find hardware from DB
var hardware models.Hardware
models.DB.Find(&hardware)
models.DB.Find(&hardware, hardwareID)
data["hardware"] = hardware
data["title"] = hardware.Name