Advanced YAML-based routing for express
@todo
npm install --save express routicorn
@todo
See the example folder for a tiny demonstration of Routicorn:
node example/app.js
API docs are available in the Wiki.
var Routicorn = require('routicorn');
var router = new Routicorn({/* options */});
router.loadRoutes('main.yml');
router.generatePath(routeName, params)
req.generatePath(routerName, params);
req.forward(routeName, options);
res.redirectRoute(routeName, params);
app.use(router);
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt test
.
Copyright (c) 2015 Felix Zandanel
Licensed under the MIT license.
See LICENSE for more info.