Code52/saywat — pull request #1 by csainty (2012-04-02 23:29:07+00:00)
Title: Changed the way routes are specified.

This makes it easier to split routes into separate files.

This is my current way of laying them out, though I am happy to discuss if anyone has some other examples to show.

It would also be possible to expose multiple http methods from the one file by exporting a get and a put method. Then reference them like the original express template does.

You could also treat the route/*.js files as MVC style Controllers. Exposing all the related functions. I personally don't mind a large number of small files though, I'll take file system complexity of merge conflict complexity.