var app = require(‘koa‘)();
var router = require(‘koa-router‘)();
require(‘koahub‘);
for (var key in koahub.controller){
router.use(key, koahub.controller[key]);
}
router.use(‘/home‘, auth(‘home‘).skip({path: [/public/]}));
app.use(router.routes());
console.log(koahub.model);
console.log(koahub.controller);
console.log(koahub.util);
app.listen(3000);