about.go 436 B

1234567891011121314151617
  1. package pages
  2. import (
  3. "codeberg.org/vnpower/pixivfe/v2/core/config"
  4. "github.com/gofiber/fiber/v2"
  5. )
  6. func AboutPage(c *fiber.Ctx) error {
  7. info := fiber.Map{
  8. "Time": core.GlobalServerConfig.StartingTime,
  9. "Version": core.GlobalServerConfig.Version,
  10. "ImageProxy": core.GlobalServerConfig.ProxyServer.String(),
  11. "AcceptLanguage": core.GlobalServerConfig.AcceptLanguage,
  12. }
  13. return c.Render("about", info)
  14. }