src/Router.js
function(path) {
		var callback;
		if (typeof path === 'function') {
			callback = path;
		}

		this.promises.push({
			callback: callback ? function(url) {
				return callback(url);
			} : Router.pathMatcher(path),
			scraper: null,
			rqMethod: null
		});
		return this.get();
	}
function(path) {
		var callback;
		if (typeof path === 'function') {
			callback = path;
		}

		this.promises.push({
			callback: callback ? function(url) {
				return callback(url);
			} : Router.pathMatcher(path),
			scraper: null,
			rqMethod: null
		});
		return this.get();
	}
function ( path ) { var callback ; if ( typeof path === 'function' ) { callback = path ; } this . promises . push ( { callback : callback ? function ( url ) { return callback ( url ) ; } : Router . pathMatcher ( path ) , scraper : null , rqMethod : null } ) ; return this . get ( ) ; }
Promise to url match. It's promise will fire only if the path
matches with and url being routed.

@param  {!(string|RegExp|function(string):?)} path The
path or regular expression to match an url.
Alternatively a function that receives the url to be matched
can be passed. If the result is false, or any
!!result===false), the path is considered valid and the
scraping should be done. If ,in case of a valid path, an Object is returned, it will be associated with the params of this
route/path.
For more information on the path matching refer to {@link https://github.com/aaronblohowiak/routes.js/blob/76bc517037a0321507c4d84a0cdaca6db31ebaa4/README.md#path-formats}
@return {!Router} This router.
@public
Promise to url match . It s promise will fire only if the path matches with and url being routed .