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 add a global Middleware before all Paths #126

Open
OmarSultan85 opened this issue Jul 10, 2017 · 2 comments
Open

How to add a global Middleware before all Paths #126

OmarSultan85 opened this issue Jul 10, 2017 · 2 comments

Comments

@OmarSultan85
Copy link

I'm looking for a way to add a global middleware before all handlers. I'm currently creating the handler as an array and making a call to my middleware through there but can't seem to find a way to default this middleware to all handlers.

Thanks and apologies if this is documented somewhere and I missed it.

@ryanbecker
Copy link

I'm trying to do the same. My end goal is to support validating custom string formats, like "uuid".

@jsdevel
Copy link

jsdevel commented Jan 17, 2018

express-openapi supports this. See x-express-openapi-additional-middleware: https://github.com/kogosoftwarellc/express-openapi#configuring-middleware

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

3 participants