A simple routing module for node.js
npm install m6
Create routes with action functions such as the following example:
this will route to the 'GET' method, you can also route to 'POST' requests by using the function AddPostRoute.
You can also pass parameters through to the action method on the url by denoting them with a '@' character:
Querystring parameters will also be passed through on the req.params object.
Finally, when a http request is received, delegate responsibility to m6 like so:
var server = http;