src/middleware/simpleRouter.js
function buildRouterPath(path, prefix) {
	if (!prefix) {
		prefix = '';
	}

	if (prefix.length && path === '/') {
		return prefix;
	}

	return prefix + path;
}
function buildRouterPath(path, prefix) {
	if (!prefix) {
		prefix = '';
	}

	if (prefix.length && path === '/') {
		return prefix;
	}

	return prefix + path;
}
function buildRouterPath ( path , prefix ) { if ( ! prefix ) { prefix = '' ; } if ( prefix . length && path === '/' ) { return prefix ; } return prefix + path ; }
Applies a prefix to paths of route files

@todo I'm pretty sure there's an existing library that will do this more accurately
@param {string} path - The HTTP path of a route
@param {string} [prefix] - An optional prefix for the HTTP path
Applies a prefix to paths of route files