Fixed mix up between benchmark and hardware routes files

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent fde8d1dee4
commit c8a47b270a
2 changed files with 29 additions and 29 deletions

View File

@ -15,13 +15,13 @@ import (
)
func HardwareGetList(t template.Template, data template.Data) {
// add benchmarks to template
var benchmarks []models.Benchmark
models.DB.First(&benchmarks)
data["benchmarks"] = benchmarks
// add hardwares to template
var hardware []models.Hardware
models.DB.First(&hardware)
data["hardware"] = hardware
data["title"] = "List of Benchmarks"
t.HTML(http.StatusOK, "benchmark/list")
data["title"] = "List of Hardware"
t.HTML(http.StatusOK, "hardware/list")
}
func HardwareGetView(c flamego.Context, t template.Template, data template.Data) {