express-rewrite icon indicating copy to clipboard operation
express-rewrite copied to clipboard

Express middleware for rewriting URLs without doing an http redirect.

Results 4 express-rewrite issues
Sort by recently updated
recently updated
newest added

_what are you looking for in app?_ the bug: TypeError: req.app.match is not a function at rewriter (c:\Projects\expbackend\server\dev-experiment-backend-system\node_modules\express-rewrite\rewrite.js:3:26) at Layer.handle [as handle_request] (c:\Projects\expbackend\server\dev-experiment-backend-system\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (c:\Projects\expbackend\server\dev-experiment-backend-system\node_modules\express\lib\router\index.js:317:13) at c:\Projects\expbackend\server\dev-experiment-backend-system\node_modules\express\lib\router\index.js:284:7 at Function.process_params...

Hi, could you give me a use case where this module would be useful? I'm just doing R&D on node and node modules in order to know what exists, how...

seems the code is out of date that req.app does not have a method named "match", so I updated the code with the correct routines.