Add Accept-Language header value in the about page

This commit is contained in:
VnPower
2023-10-28 07:15:37 +07:00
parent b3ecb0ee0b
commit 29d1fabe28
2 changed files with 9 additions and 4 deletions
+4
View File
@@ -20,6 +20,10 @@
proxy server that was set on this server, used to proxy images from
i.pximg.net
</li>
<li>
<b>Accept-Language header</b>: {{ AcceptLanguage }}<br />The value of the
Accept-Language header this server uses to request to Pixiv's APIs.
</li>
</ul>
<p></p>
</div>
+5 -4
View File
@@ -362,10 +362,11 @@ func get_logged_in_user(c *fiber.Ctx) error {
func about_page(c *fiber.Ctx) error {
info := fiber.Map{
"Time": configs.StartingTime,
"BaseURL": configs.BaseURL,
"Version": configs.Version,
"ImageProxy": configs.ProxyServer,
"Time": configs.StartingTime,
"BaseURL": configs.BaseURL,
"Version": configs.Version,
"ImageProxy": configs.ProxyServer,
"AcceptLanguage": configs.AcceptLanguage,
}
return c.Render("pages/about", info)
}