mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-30 12:16:07 +01:00
improve (favicon): remove redirection on favicon
This commit is contained in:
parent
5f7de7826a
commit
2c271e02fc
1 changed files with 1 additions and 3 deletions
|
|
@ -94,9 +94,7 @@ func Init(a *App) {
|
|||
r.HandleFunc("/api/backend", NewMiddlewareChain(AdminBackend, middlewares, *a)).Methods("GET")
|
||||
middlewares = []Middleware{ StaticHeaders }
|
||||
r.PathPrefix("/assets").Handler(http.HandlerFunc(NewMiddlewareChain(StaticHandler(FILE_ASSETS), middlewares, *a))).Methods("GET")
|
||||
r.HandleFunc("/favicon.ico", func(res http.ResponseWriter, req *http.Request) {
|
||||
http.Redirect(res, req, "/assets/logo/favicon.ico", http.StatusMovedPermanently)
|
||||
})
|
||||
r.HandleFunc("/favicon.ico", NewMiddlewareChain(StaticHandler(FILE_ASSETS + "/assets/logo/"), middlewares, *a)).Methods("GET")
|
||||
middlewares = []Middleware{ IndexHeaders }
|
||||
r.HandleFunc("/about", NewMiddlewareChain(AboutHandler, middlewares, *a)).Methods("GET")
|
||||
for _, obj := range Hooks.Get.HttpEndpoint() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue