From 07c36109d8da27842fe241a48714646b5d9acddc Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 20 Jan 2024 08:15:27 -0500 Subject: [PATCH] refactor: move strip prefix to be last --- api/middleware/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }