application.js
function resolveRouters(request) {
    for (var i = 0, l = routers.length; i < l; i++) {
      var callback = routers[i].resolve(request);
      if (null != callback) {
        return Promise.resolve(callback);
      }
    }
    return Promise.reject('Route not defined for "' + request.url + '"');
  }
function resolveRouters(request) {
    for (var i = 0, l = routers.length; i < l; i++) {
      var callback = routers[i].resolve(request);
      if (null != callback) {
        return Promise.resolve(callback);
      }
    }
    return Promise.reject('Route not defined for "' + request.url + '"');
  }
function resolveRouters ( request ) { for ( var i = 0 , l = routers . length ; i < l ; i ++ ) { var callback = routers [ i ] . resolve ( request ) ; if ( null != callback ) { return Promise . resolve ( callback ) ; } } return Promise . reject ( 'Route not defined for "' + request . url + '"' ) ; }
Resolve uri using routers
@param request
@returns {Promise}
Resolve uri using routers