fix(filetransfer): remove auth.AdminsOnly middleware wrapper from routes

This commit is contained in:
titof
2026-08-05 16:18:40 +01:00
committed by Miroslav Šedivý
parent e843961c37
commit 88fdfca3ea
@@ -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 {