Skip to content

matteocrippa/request-has-param

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Request Has Param

Easily check for params directly using a middleware.

Install

$ npm install --save git+https://git@github.com/matteocrippa/request-has-param.git

Usage

var hasParam = require('request-has-param');

// setup routes
app.use('/', hasParam(['test']), rootRoute);

This will check for all the request to have req.param.test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published