We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通过koa2 project_name创建项目后,在app.js中,出现了app.use(router.routes(), router.allowedMethods());
koa2 project_name
app.use(router.routes(), router.allowedMethods());
app.use()不是只接受第一个参数的吗?
The text was updated successfully, but these errors were encountered:
同问,查阅源码也发现use只支持一个参数,不知道此处是依据哪个版本的api。我改成了这样:app.use(router.routes()).use(router.allowedMethods())
Sorry, something went wrong.
No branches or pull requests
version: 1.1.16
通过
koa2 project_name
创建项目后,在app.js中,出现了app.use(router.routes(), router.allowedMethods());
app.use()不是只接受第一个参数的吗?
The text was updated successfully, but these errors were encountered: