Skip to content

fza/routicorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Routicorn

Build Status Coverage Status Dependency Status devDependency Status

NPM

Advanced YAML-based routing for express

Features

@todo

Installation

npm install --save express routicorn

Usage

@todo

Example

See the example folder for a tiny demonstration of Routicorn:

node example/app.js

API

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);

Contributing

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.

License

Copyright (c) 2015 Felix Zandanel
Licensed under the MIT license.

See LICENSE for more info.

About

Advanced YAML-based routing for express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published