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

how to handle events depend on different router ? #60

Open
ChJJin opened this issue Oct 11, 2014 · 0 comments
Open

how to handle events depend on different router ? #60

ChJJin opened this issue Oct 11, 2014 · 0 comments

Comments

@ChJJin
Copy link

ChJJin commented Oct 11, 2014

At the first, thanks to the plugin, it helps me a lot.

now I use the middleware on different router, it's like:

router.post(path1, upload.fileHandler(option1));
router.post(path2, upload,fileHandler(option2));

and base on different router, I want to handler end event in different ways.
Actually, I can set req.type or something like that, but which I don't think is the best solution.
So, how can I do?

Thanks.

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

No branches or pull requests

1 participant