const Koa = require('koa'),
Router = require('koa-router'),
serve = require('koa-static'),
logger = require('koa-logger'),
views = require('koa-views'),
app = new Koa(),
router = new Router();
app.use(serve('public'));
app.use(logger());
app.use(bodyParser());
app.use(views(__dirname + '/views', {extension: 'pug'}));
router.get('/', function *() {
this.body = yield this.render('index');
});
module.exports = app;