refactor: move injectJwt to be processed after authMiddlewareFunc
This commit is contained in:
parent
9bf10b19bf
commit
a1e7cda659
|
@ -171,7 +171,7 @@ func BuildS5TusApi(portal interfaces.Portal) jape.Handler {
|
|||
}
|
||||
|
||||
// Apply the middlewares to the tusJapeHandler
|
||||
tusHandler := ApplyMiddlewares(tusJapeHandler, injectJwt, stripPrefix, authMiddlewareFunc, protocolMiddleware)
|
||||
tusHandler := ApplyMiddlewares(tusJapeHandler, stripPrefix, authMiddlewareFunc, injectJwt, protocolMiddleware)
|
||||
|
||||
return tusHandler
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue