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

Trailing slashes get automatically removed by AWS API Gateway, but swagger-ui-express requires it. #335

Open
jeremy85 opened this issue Feb 17, 2023 · 1 comment

Comments

@jeremy85
Copy link

Trailing slashes get automatically removed by AWS API Gateway, but swagger-ui-express requires it. Page displays "Redirecting to /docs/" and not swagger UI.

I tried changing:

app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec));
to
app.use('/docs/', swaggerUi.serve, swaggerUi.setup(swaggerSpec));

...but neither work.

@scottie1984
Copy link
Owner

Fix is here perhaps: #140. Maybe this one #140 (comment)

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