mikaelkaron / node-devserver

A simple development server geared towards front-end developers and ADD (Api Driven Development) applications.
5 stars 1 forks source link

Add regexp support to front-end #1

Open ika18 opened 11 years ago

ika18 commented 11 years ago

It would be nice if the front-end module in addition to using directory structures could be controlled with regexps.

mikaelkaron commented 11 years ago

Instead of adding this to front-end I'm thinking to add a rewrite middleware.

ika18 commented 11 years ago

So there would be three middleware? Front-end, back-end, and rewrite?

mikaelkaron commented 11 years ago

Yes. The idea here is that you'd first rewrite, then try to find a local version of the file, then try to proxy.

ika18 commented 11 years ago

Sounds great. And it sounds like apache 'mod_rewrite' to rewrite some specific url that meet some pattern. And it's optional to user to use it or not.