Favicon on Direct Image Links (closes #23)
This commit is contained in:
parent
12684be6aa
commit
6c49dee732
5
main.go
5
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue