lib/objects/Application.js
function(routePrefix)
	{
		if(routePrefix==='/')routePrefix='';
        this.appUrl = routePrefix;
		var pattern = /^(.*?)\s(.*?)$/
		for(var routePath in this.routes)
		{
			var routePathArray = routePath.match(pattern);
			this.openbiz.context[routePathArray[1]](routePrefix+routePathArray[2],this.routes[routePath]);
		}
        return this;
	}
function(routePrefix)
	{
		if(routePrefix==='/')routePrefix='';
        this.appUrl = routePrefix;
		var pattern = /^(.*?)\s(.*?)$/
		for(var routePath in this.routes)
		{
			var routePathArray = routePath.match(pattern);
			this.openbiz.context[routePathArray[1]](routePrefix+routePathArray[2],this.routes[routePath]);
		}
        return this;
	}
function ( routePrefix ) { if ( routePrefix === '/' ) routePrefix = '' ; this . appUrl = routePrefix ; var pattern = / ^(.*?)\s(.*?)$ / for ( var routePath in this . routes ) { var routePathArray = routePath . match ( pattern ) ; this . openbiz . context [ routePathArray [ 1 ] ] ( routePrefix + routePathArray [ 2 ] , this . routes [ routePath ] ) ; } return this ; }
Mounts current application to specified URL router
@memberof openbiz.objects.Application
@instance
@param {string} routePrefix - The prefix of URL to mount this application instance
@returns {openbiz.objects.Application}
@example
// init cubi app to routes => /app/*
openbiz.apps['cubi'].initRoutes('/api');
Mounts current application to specified URL router