UNPKG

twee

Version:

Twee Framework - the most powerful, elegant and extensive framework for Node.js based on Express.js

11 lines (10 loc) 208 B
/** * Simplest Range Param Example * @type {RegExp} */ module.exports = function(req, res, next, range) { if (range.match(/^(\d+)-(\d+)$/)) { return next(); } next('route') }