value
routedMiddleware :: ([Text] -> Bool)Only use middleware if this pathInfo test returns True
-> Middlewaremiddleware to apply the path prefix guard to
-> Middlewaremodified middleware
Apply a middleware based on a test of pathInfo
example:
let corsify = routedMiddleWare ("static" `elem`) addCorsHeadersSince 3.0.9