Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.41k
stars
225
forks
source link
Swagger with domain path from AWS API Gateway #301
I can't open swagger in the https://domain.com/v1/api. Locally everything works fine. ( http://localhost:4001/api ). After deployment in the testing link, everything works fine also ( https://e4nub5bjh6.execute.us.amazonaws.com/dev/api ). But not want to work on the prod link: https://domain.com/v1/api
Without path v1 everything work ( https://domain.com/api ).![image](https://user-images.githubusercontent.com/28589064/176176241-aac652a3-e7ca-420e-aa7f-e87bc8297e43.png)
My code // lambda.ts
How can I fix this issue?