express-param-objectid
v1.0.0
Published
Ensure a param is a valid objectid
Downloads
80
Readme
Usage
var objectId = require('express-param-objectid');
router.param('id', objectId);
router.param('id', function (req, res, next, id) {
// id is a valid objectId
});