This commit is contained in:
video-prize-ranch
2022-01-18 18:05:06 -05:00
parent 87c8618cf5
commit 4a1309e0dc
13 changed files with 251 additions and 19 deletions

View File

@@ -20,8 +20,14 @@ func HandleGallery(c *fiber.Ctx) error {
return err
}
comments, err := api.FetchComments(c.Params("galleryID"))
if err != nil {
return err
}
return c.Render("gallery", fiber.Map{
"album": album,
"isAlbum": false,
"album": album,
"comments": comments,
"isAlbum": false,
})
}