ibird
Version:
A lightweight and flexible web development framework.
24 lines (20 loc) • 384 B
JavaScript
/**
* 应用声明模块
*/
const App = require('./application');
const context = require('./context');
/**
* 导出应用类
* @type {App}
*/
module.exports.App = App;
/**
* 导出上下文函数
* @type {fn}
*/
module.exports.context = module.exports.ctx = context;
/**
* 快速新建应用
* @param opts 应用配置
*/
module.exports.newApp = opts => new App(opts);