src/middleware/router.js
function serveapp (directory) {
	/* istanbul ignore next */
	return async function serveEmberAPP (ctx, next) {
		await next();
		if (!ctx.body) {
			await ctx.render(directory);
		}
	};
}
function serveapp (directory) {
	/* istanbul ignore next */
	return async function serveEmberAPP (ctx, next) {
		await next();
		if (!ctx.body) {
			await ctx.render(directory);
		}
	};
}
function serveapp ( directory ) { /* istanbul ignore next */ return async function serveEmberAPP ( ctx , next ) { await next ( ) ; if ( ! ctx . body ) { await ctx . render ( directory ) ; } } ; }
Creates the public handler for a EmberApp.
@private
@param {string} directory - The path where the EmberApp is located relative to public folder
@return {async function(ctx: KoaContext, next: KoaNext)} renders the view
Creates the public handler for a EmberApp .