mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 17:22:34 +01:00
fix (admin): fix the not allowed message upon access to the admin console
This commit is contained in:
parent
685690ed0d
commit
9e63eafb61
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ func Init(a *App) {
|
|||
admin.HandleFunc("/log", NewMiddlewareChain(FetchLogHandler, middlewares, *a)).Methods("GET")
|
||||
admin.HandleFunc("/config", NewMiddlewareChain(PrivateConfigHandler, middlewares, *a)).Methods("GET")
|
||||
admin.HandleFunc("/config", NewMiddlewareChain(PrivateConfigUpdateHandler, middlewares, *a)).Methods("POST")
|
||||
middlewares = []Middleware{ IndexHeaders, SecureAjax }
|
||||
middlewares = []Middleware{ IndexHeaders }
|
||||
r.PathPrefix("/admin").Handler(http.HandlerFunc(NewMiddlewareChain(IndexHandler(FILE_INDEX), middlewares, *a))).Methods("GET")
|
||||
|
||||
// API for File management
|
||||
|
|
|
|||
Loading…
Reference in a new issue