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

Add an option to call to middleware by using req object #5

Closed
Aminadav opened this issue Sep 11, 2016 · 1 comment
Closed

Add an option to call to middleware by using req object #5

Aminadav opened this issue Sep 11, 2016 · 1 comment
Projects

Comments

@Aminadav
Copy link
Owner

Aminadav commented Sep 11, 2016

See this code for example:

app.get('/middleware1',function(req,res){
           /*
                  use req object instead of app object
          */
           req.runMiddleware('middleware2',{},function (){})
})


@Aminadav
Copy link
Owner Author

Fixed in the new version. But you need to call it from the res object.

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

No branches or pull requests

1 participant