mirror of
https://github.com/monadicsystems/okapi.git
synced 2024-11-22 00:51:34 +03:00
Change order in which middleware is applied by Scope
This commit is contained in:
parent
25d9ff448f
commit
90225e6330
@ -192,7 +192,7 @@ middleware' middlewareToApply (appsHead : appsTail) backup req resp =
|
||||
if prefix `List.isPrefixOf` Wai.pathInfo req
|
||||
then do
|
||||
let newReq = req {Wai.pathInfo = drop (length prefix) (Wai.pathInfo req)}
|
||||
middleware' (middlewareToApply . otherMiddlewareToApply) apps backup newReq resp
|
||||
middleware' (otherMiddlewareToApply . middlewareToApply) apps backup newReq resp
|
||||
else middleware' middlewareToApply appsTail backup req resp
|
||||
|
||||
tree :: App -> IO (Tree.Tree String)
|
||||
|
Loading…
Reference in New Issue
Block a user