You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
348 B

2 years ago
/**
* User: liuxinyi/liu.xinyi@free-sun.com.cn
* Date: 2016/2/22
* Time: 15:29
*
*/
const views = require('koa-view');
const path = require('path');
module.exports = {
entry(app, router, opt) {
app.use(views(__dirname));
router.get('(.*)', async (ctx) => {
await ctx.render(path.join(__dirname, './index'));
});
},
};