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

router-level middleware #73

Closed
alexandremello opened this issue Jul 18, 2017 · 3 comments
Closed

router-level middleware #73

alexandremello opened this issue Jul 18, 2017 · 3 comments

Comments

@alexandremello
Copy link

I tried to add an router-level middleware to expose some routes depending on NODE_ENV. But I could not figure out how to do it.
I used x-express-openapi-additional-middleware to include my middleware, but express-openapi does not execute it. There is an elegant way to expose/hide routes depending on NODE_ENV?
And there is a way to add middleware using api-doc as json file?

@jsdevel
Copy link
Contributor

jsdevel commented Jul 18, 2017

@alexandremello we have extensive tests for every feature that you can find here: https://github.com/kogosoftwarellc/express-openapi/tree/master/test/sample-projects

@jsdevel
Copy link
Contributor

jsdevel commented Jul 26, 2017

closing due to inactivity. Let us know if your issue is still persisting @alexandremello.

@jsdevel jsdevel closed this as completed Jul 26, 2017
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

2 participants