added initial favicon

This commit is contained in:
ston1th 2019-01-23 00:37:51 +01:00
commit 6a2dc8146c
7 changed files with 39 additions and 7 deletions

View file

@ -73,6 +73,9 @@ func staticHandler(ctx *Context) {
err = ctx.Write(ctx.Srv.res["bootstrap.css"])
case "/custom.css":
err = ctx.Write(ctx.Srv.res["custom.css"])
case "/favicon.ico":
ctx.SetHeader("Content-Type", "image/x-icon")
err = ctx.Write(ctx.Srv.res["favicon.ico"])
}
if err != nil {
log.Println("static:", err)