method-router

0.1.0 • Public • Published

method-router

Return a filter function for http-requests for get,post,put,delete - works well with routes-router

usage

var methods = require('method-router');

var get = methods.post(function(req, res, next){
    // this will only happen for a get request
})

var post = methods.post(function(req, res, next){
    // this will only happen for a post request
})

installation

$ npm install method-router

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i method-router

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • binocarlos