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
Add support for other web framework middleware.
The text was updated successfully, but these errors were encountered:
Hello, i am trying to use Method-based middleware but i get the following error
next is not a function
Here is the code: const fetchUser = (req, res, next) => { next(); }); app.get('/comment/:id', fetchUser, (req, res) => { res.send(req.params.id); });
const fetchUser = (req, res, next) => { next(); });
app.get('/comment/:id', fetchUser, (req, res) => { res.send(req.params.id); });
The Generic Middleware approach works fine. Do you have any clue about this ? Thanks
Sorry, something went wrong.
No branches or pull requests
Add support for other web framework middleware.
The text was updated successfully, but these errors were encountered: