Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 613 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 613 Bytes

swint-router

Greenkeeper badge 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({})