Add support for .gifv (closes #13) and fixes loading media IDs

This commit is contained in:
video-prize-ranch
2022-02-22 19:06:39 -05:00
parent 156452713b
commit 4572499658
7 changed files with 86 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/gofiber/fiber/v2"
)
func FrontpageHandler(c *fiber.Ctx) error {
func HandleFrontpage(c *fiber.Ctx) error {
utils.SetHeaders(c)
c.Set("Cache-Control", "public,max-age=31557600")
c.Set("Content-Security-Policy", "default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'; block-all-mixed-content")