mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
fix(filetransfer): remove auth.AdminsOnly middleware wrapper from routes
This commit is contained in:
@@ -208,8 +208,8 @@ func (m *Manager) Shutdown() error {
|
||||
}
|
||||
|
||||
func (m *Manager) Route(r types.Router) {
|
||||
r.With(auth.AdminsOnly).Get("/", m.downloadFileHandler)
|
||||
r.With(auth.AdminsOnly).Post("/", m.uploadFileHandler)
|
||||
r.Get("/", m.downloadFileHandler)
|
||||
r.Post("/", m.uploadFileHandler)
|
||||
}
|
||||
|
||||
func (m *Manager) WebSocketHandler(session types.Session, msg types.WebSocketMessage) bool {
|
||||
|
||||
Reference in New Issue
Block a user