recidive/choko — pull request #112 by lucasconstantino (2014-05-25 03:27:21+00:00)
Title: Allow routes to define their method and specific middleware.

Make it possible for a route instance to define the method to listen for (get, post, etc). Fallback to "all" if none is given.

Make it possible for a route to define a middleware to run before it gets handled. This allows for the middleware to call *next('route')* and simply bypass the route handler. Good for redirecting purposes.

Better then this enhancements would be to work on issue #101 and then give the developer much more access to the express API itself, so we don't have to always create wrappers around express functionalities.