rimgo/pages/album.go

21 lines
341 B
Go
Raw Normal View History

2022-01-17 20:23:04 +00:00
package pages
import (
2022-01-17 22:34:05 +00:00
"codeberg.org/video-prize-ranch/rimgo/api"
2022-01-17 20:23:04 +00:00
"github.com/gofiber/fiber/v2"
)
func HandleAlbum(c *fiber.Ctx) error {
// https://imgur.com/a/DfEsrAB
album, err := api.FetchAlbum(c.Params("albumID"))
if err != nil {
return err
}
return c.Render("gallery", fiber.Map{
"album": album,
2022-01-17 22:11:33 +00:00
"isAlbum": true,
2022-01-17 20:23:04 +00:00
})
}