swint-router
v1.1.2
Published
Routing manager for Swint web server
Downloads
216
Readme
swint-router
Routing manager for Swint web server
Warning: This is not the final draft yet, so do not use this until its official version is launched
Installation
$ npm install --save swint-router
Option
dir
:String
, default:path.join(path.dirname(require.main.filename), 'router')
Usage
var myRouter = new swintRouter({
dir: path.join(__dirname, 'router')
});
myRouter.load(myMiddleware); // An instance of require('swint-middleware').loader({})