diff --git a/api/middleware/s5.go b/api/middleware/s5.go index 52a69db..f79b3ef 100644 --- a/api/middleware/s5.go +++ b/api/middleware/s5.go @@ -171,7 +171,7 @@ func BuildS5TusApi(portal interfaces.Portal) jape.Handler { } // Apply the middlewares to the tusJapeHandler - tusHandler := ApplyMiddlewares(tusJapeHandler, stripPrefix, authMiddlewareFunc, injectJwt, protocolMiddleware) + tusHandler := ApplyMiddlewares(tusJapeHandler, authMiddlewareFunc, injectJwt, protocolMiddleware, stripPrefix) return tusHandler }