1234567891011121314151617181920212223 |
- package pages
- import (
- core "codeberg.org/vnpower/pixivfe/v2/core/webapi"
- "github.com/gofiber/fiber/v2"
- )
- func NewestPage(c *fiber.Ctx) error {
- worktype := c.Query("type", "illust")
- r18 := c.Query("r18", "false")
- works, err := core.GetNewestArtworks(c, worktype, r18)
- if err != nil {
- return err
- }
- return c.Render("pages/newest", fiber.Map{
- "Items": works,
- "Title": "Newest works",
- })
- }
|