src/sap.ui.core/src/sap/ui/core/routing/Router.js
function (oConfig, oParent) {
				if (!oConfig.name) {
					Log.error("A name has to be specified for every route", this);
				}

				if (this._oRoutes[oConfig.name]) {
					Log.error("Route with name " + oConfig.name + " already exists", this);
				}
				this._oRoutes[oConfig.name] = this._createRoute(this, oConfig, oParent);
			}
function (oConfig, oParent) {
				if (!oConfig.name) {
					Log.error("A name has to be specified for every route", this);
				}

				if (this._oRoutes[oConfig.name]) {
					Log.error("Route with name " + oConfig.name + " already exists", this);
				}
				this._oRoutes[oConfig.name] = this._createRoute(this, oConfig, oParent);
			}
function ( oConfig , oParent ) { if ( ! oConfig . name ) { Log . error ( "A name has to be specified for every route" , this ) ; } if ( this . _oRoutes [ oConfig . name ] ) { Log . error ( "Route with name " + oConfig . name + " already exists" , this ) ; } this . _oRoutes [ oConfig . name ] = this . _createRoute ( this , oConfig , oParent ) ; }
Adds a route to the router

@param {object} oConfig configuration object for the route @see sap.ui.core.routing.Route#constructor
@param {sap.ui.core.routing.Route} oParent The parent route - if a parent route is given, the routeMatched event of this route will also trigger the route matched of the parent and it will also create the view of the parent (if provided).
@public
Adds a route to the router