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
Hello everybody
I would like to know how to split the control methods into files. When I do controllers/users/index.js the following happens:
Error: Route.get() requires callback functions but got a [object Object]
controllers/users/index.js
module.exports = (app) => { var User = app.models.user return { index(req, res) {...} } }
Thanks a lot!
[]'s
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello everybody
I would like to know how to split the control methods into files. When I do controllers/users/index.js the following happens:
controllers/users/index.js
Thanks a lot!
[]'s
The text was updated successfully, but these errors were encountered: