Skip to content
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

Middleware integrations #46

Open
jeremydaly opened this issue Jun 11, 2018 · 1 comment
Open

Middleware integrations #46

jeremydaly opened this issue Jun 11, 2018 · 1 comment

Comments

@jeremydaly
Copy link
Owner

Add support for other web framework middleware.

@eumpek
Copy link

eumpek commented Feb 4, 2019

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); });

The Generic Middleware approach works fine. Do you have any clue about this ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants