mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-01 02:43:35 +08:00 
			
		
		
		
	fix (admin): fix the not allowed message upon access to the admin console
This commit is contained in:
		| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mickael KERJEAN
					Mickael KERJEAN