mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
improve (favicon): remove redirection on favicon
This commit is contained in:
+1
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user