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
使用最新的 koa-generator 生成的项目 app.js 文件中,有如下一段代码:
// routes app.use(index.routes(), index.allowedMethods()) app.use(users.routes(), users.allowedMethods())
IDE 提示 Invalid number of arguments, expected 1 查看了相关文档和 koa 源码,其中 app.use 只接收一个参数 fn。 index.allowedMethods() 等操作是否可以放在 routers 的相关文件中,在 module.exports 之前执行?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用最新的 koa-generator 生成的项目 app.js 文件中,有如下一段代码:
// routes
app.use(index.routes(), index.allowedMethods())
app.use(users.routes(), users.allowedMethods())
IDE 提示 Invalid number of arguments, expected 1
查看了相关文档和 koa 源码,其中 app.use 只接收一个参数 fn。
index.allowedMethods() 等操作是否可以放在 routers 的相关文件中,在 module.exports 之前执行?
The text was updated successfully, but these errors were encountered: