var app = require('koa')();
var router = require('koa-router');
app.use(router(app));
Throws this error:
AssertionError: app.use() requires a generator function
A lot of sample code says to setup koa-router this way. It supposedly adds methods to the koa app.