joehewitt/express-rewrite — Issue #2: Use case?
Author: panosru
Created: 2012-01-26 02:25:17+00:00
State: open

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