I\'m trying to figure out how to split my routes into separate files.
I have this so far, but it doesn\'t work. I just get Not found when I try to access
Not found
var app = require('koa')(); var router = require('./routes'); app.use(router.routes()); app.use(router.allowedMethods()); app.listen(3000);
var router = require('koa-router')(); router.get('/', function* () { this.body = 'router test'; }); module.exports = router;