lib/index.js
function onEachExcludedRoute(app, route) {
  const normalized = normalize(route);

  debug(`Excluding ${(normalized.method || 'all').toUpperCase()} ${normalized.path} from CSRF check...`);

  const router = app.route(normalized.path);

  if (is.array(normalized.method) && normalized.method.length) {
    for (let i = 0, l = normalized.method.length; i < l; i++) {
      exclude(router, normalized.method[i]);
    }
  }

  if (is.string(normalized.method)) {
    exclude(router, normalized.method);
    return;
  }

  /* Defaults to all */
  exclude(router, 'all');
}
function onEachExcludedRoute(app, route) {
  const normalized = normalize(route);

  debug(`Excluding ${(normalized.method || 'all').toUpperCase()} ${normalized.path} from CSRF check...`);

  const router = app.route(normalized.path);

  if (is.array(normalized.method) && normalized.method.length) {
    for (let i = 0, l = normalized.method.length; i < l; i++) {
      exclude(router, normalized.method[i]);
    }
  }

  if (is.string(normalized.method)) {
    exclude(router, normalized.method);
    return;
  }

  /* Defaults to all */
  exclude(router, 'all');
}
function onEachExcludedRoute ( app , route ) { const normalized = normalize ( route ) ; debug ( ` ${ ( normalized . method || 'all' ) . toUpperCase ( ) } ${ normalized . path } ` ) ; const router = app . route ( normalized . path ) ; if ( is . array ( normalized . method ) && normalized . method . length ) { for ( let i = 0 , l = normalized . method . length ; i < l ; i ++ ) { exclude ( router , normalized . method [ i ] ) ; } } if ( is . string ( normalized . method ) ) { exclude ( router , normalized . method ) ; return ; } /* Defaults to all */ exclude ( router , 'all' ) ; }
Processes each excluded route.

@param {ExpressApplication} app Your express application instance.
@param {Object} route The route object to process.
Processes each excluded route .