Added route to view hardware component
This commit is contained in:
parent
5b14721b14
commit
9fd6ec6b0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user