code: function route(method, path, cb) {
          return function (req, res, next) {
              if (req.method !== method) {
                  return next();
              }
  
              if (path instanceof RegExp && req.url.match(path) === null || typeof path === 'string' && req.url !== path) {
                  return next();
              }
  
              cb(req, res, next);
          };
      }
docs: simple router