ismethod
v1.0.4
Published
add is[req.method] convenience property to every request.
Downloads
2
Readme
#isMethod-middleware
add is[req.method] convenience property to every request.
e.g.,
function(req, res, next) {
if (req.isGet) {
req.json('GET request');
}
}
mostly useful for other middleware, rather than routing middleware.