express-rewrite
express-rewrite copied to clipboard
Use case?
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 I can use it, use cases & etc so I can't find a use case for this module.
for instance why I would use this:
server.get('/from/some/url', rewriter.rewrite('/to/another/url'));
instead of doing it in the first place like this:
server.get('/to/another/url', function (...) { ... });
?
Thanks