function createRouter(cfg) {
	config = cfg;
	createRoutes();

	var router = express.Router({
		caseSensitive: false,
		strict: false
	});

	router.use('/', express.static(config.nitro.base_path + '/public'));

	router.get('/', resolveView);
	router.get('/:view', resolveView);

	router.use(errorView);

	return router;
}
/**
 * Creates and returns express router. Adds Nitro-specific route handlers.
 *
 * @param cfg nitro/config instance
 * @returns Express Router
 */
Creates and returns express router. Adds Nitro-specific route handlers.
@param cfg nitro/config instance
@returns Express Router
Creates and returns express router . Adds Nitro - specific route handlers . @param cfg nitro / config instance @returns Express Router
function createRouter(cfg) {
	config = cfg;
	createRoutes();
	var router = express.Router({
		caseSensitive: false,
		strict: false
	});
	router.use('/', express.static(config.nitro.base_path + '/public'));
	router.get('/', resolveView);
	router.get('/:view', resolveView);
	router.use(errorView);
	return router;
}
function createRouter ( cfg ) { config = cfg ; createRoutes ( ) ; var router = express . Router ( { caseSensitive : false , strict : false } ) ; router . use ( '/' , express . static ( config . nitro . base_path + '/public' ) ) ; router . get ( '/' , resolveView ) ; router . get ( '/:view' , resolveView ) ; router . use ( errorView ) ; return router ; }
Creates and returns express router.
Creates and returns express router .