Closed rkt2spc closed 6 years ago
Hi, why not use render
from ctx
directly, like this:
exports.foo = async ({ request, response, render }, next) => {
await render('foo/bar');
};
I think it's more intuitive this way. Imagine a lot of other APIs that have to be spread, the ctx object will be bloated.
I will publish it with v6.1.4 later, thanks again!
Allow cleaner usage with koa: