Favicon on Direct Image Links (closes #23)

This commit is contained in:
video-prize-ranch 2022-04-10 11:24:54 -04:00
parent 12684be6aa
commit 6c49dee732
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ func main() {
_, err := c.Write(file)
return err
})
app.Get("/favicon.ico", func(c *fiber.Ctx) error {
file, _ := static.GetFiles().ReadFile("favicon/favicon.ico")
_, err := c.Write(file)
return err
})
app.Get("/", pages.HandleFrontpage)
app.Get("/:postID.gifv", pages.HandleEmbed)