-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
koa-better-body example #116
Comments
It's because it most probably shows that example for the Koa prior v2 when Koa became a class. var Koa = require('koa');
var app = new Koa(); The thing is And just to mention. |
Both const Koa = require('koa');
const body = require('koa-better-body');
const Router = require('@koa/router');
const app = new Koa();
const router = new Router() If you are curious for alternatives you can also check koa-better-router if it fit your needs, it's very powerful and flexible. |
Hi,
I ended up finding
koa-better-body
as it allows setting my own Formidable object, whichkoa-body
does not seem to allow. My project also uses@koa/router
.The
koa-better-body
example with the router however does not seem to work? I am getting:The text was updated successfully, but these errors were encountered: