lib/utils.js
function addRoute (verb) {
  return function (path, fn) {
    // Support all HTTP verbs
    if (!this.routes[verb])
      this.routes[verb] = [];

    this.routes[verb].push(new Route(verb, path, fn, {
      sensitive: this.settings['case sensitive routing'],
      strict: this.settings['strict routing']
    }));
  };
}
function addRoute (verb) {
  return function (path, fn) {
    // Support all HTTP verbs
    if (!this.routes[verb])
      this.routes[verb] = [];

    this.routes[verb].push(new Route(verb, path, fn, {
      sensitive: this.settings['case sensitive routing'],
      strict: this.settings['strict routing']
    }));
  };
}
function addRoute ( verb ) { return function ( path , fn ) { // Support all HTTP verbs if ( ! this . routes [ verb ] ) this . routes [ verb ] = [ ] ; this . routes [ verb ] . push ( new Route ( verb , path , fn , { sensitive : this . settings [ 'case sensitive routing' ] , strict : this . settings [ 'strict routing' ] } ) ) ; } ; }
Returns a function that acts as `app.VERB(path, route)`; helper function
used in `./lib/ghosttrain.js`.

@param {String} verb
@return {Function{
Returns a function that acts as app . VERB ( path route ) ; helper function used in . / lib / ghosttrain . js .