Rou
Url-based router for Node.js and browsers.
Getting Started
In the Node.js###
You can install using Node Package Manager (npm):
npm install rou
In the Browsers###
Also RequireJS module format supported.
API
var router = ; router method'get' // method should be 'get' // param 'new' should be // param 'category' shouldn't be // param 'bounds' should be non-empty // param 'bounds' should be 'polyline' // param 'type' should be 'road' or 'railway' // param 'oid' should be integer // rewrite /objects/new to /objects/?new=1 // rewrite /objects/road or /objects/railway to /objects/?type=road or /objects/?type=railway ; router;