0.1.0 • Published 10 years ago

method-router v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
10 years ago

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