dissociator

0.1.0 • Public • Published

Dissociator

NPM version Build Status Dependency Status

A router for express based on routington

Install

$ npm install dissociator --save

Usage

var dissociator = require('dissociator');
var router = dissociator();
 
// middleware
router.use('/page', function(req, res, next) {
    next();
});
 
router.post('/post|page/:controller', function(req, res) {
 
});
 
router.get('/page/:id(\\w{3,30})', function(req, res, next) {
 
});
 
var app = require('express')();
 
app.use(router);

API

router[verb]

verb could be any method in that available in method package.

Licence

MIT

/dissociator/

    Package Sidebar

    Install

    npm i dissociator

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • villadora