Added route to view test

This commit is contained in:
Gregory Ballantine
2024-05-29 08:43:57 -04:00
parent a51c8aa8a4
commit cf7623fbb9
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ func TestGetView(c flamego.Context, t template.Template, data template.Data) {
models.DB.Find(&test, testID)
data["test"] = test
data["title"] = test.Name
data["title"] = test.Title
t.HTML(http.StatusOK, "test/view")
}