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

Use case?

Open panosru opened this issue 13 years ago • 0 comments

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

panosru avatar Jan 26 '12 02:01 panosru