-
Notifications
You must be signed in to change notification settings - Fork 12
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
app.use conditionally #1
Comments
Hello,
You are welcome.
Can you provide a bit more details? |
I need only be limited to a route, for example /GetProducts other routes need to be unlimited if I leave app.use directly will limit all right? |
Middleware may be assigned to single route, so you need just following: |
Oh tks, i will test. |
The queue'ing does not seem to work when implementing it like this:
Also tried |
It looks working if I rewrite this way and call express-queue/examples/github-issues/1/server/routes/endpoints/chain/chain.routes.js Lines 9 to 17 in e5c7539
I added you example to <package_dir>/examples/gtihub-issues/1/ (rewritten to native Nodce's modules). You may update the module to latest version and find it inside package's directory |
Thank you very much, you saved my day |
Hello, tks for solution, i need use this section
app.use(queue({ activeLimit: 1 }));
conditionally, its possible?The text was updated successfully, but these errors were encountered: