Add favicon
This commit is contained in:
parent
27a7abaae7
commit
2d53aeab76
|
@ -3,6 +3,7 @@ package index
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"git.kirsle.net/apps/gosocial/pkg/config"
|
||||
"git.kirsle.net/apps/gosocial/pkg/log"
|
||||
"git.kirsle.net/apps/gosocial/pkg/templates"
|
||||
)
|
||||
|
@ -23,3 +24,10 @@ func Create() http.HandlerFunc {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Favicon
|
||||
func Favicon() http.HandlerFunc {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, config.StaticPath+"/favicon.ico")
|
||||
})
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ func New() http.Handler {
|
|||
|
||||
// Register controller endpoints.
|
||||
mux.HandleFunc("/", index.Create())
|
||||
mux.HandleFunc("/favicon.ico", index.Favicon())
|
||||
mux.HandleFunc("/about", index.About())
|
||||
mux.HandleFunc("/faq", index.FAQ())
|
||||
mux.HandleFunc("/tos", index.TOS())
|
||||
|
|
BIN
web/static/favicon.ico
Normal file
BIN
web/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user