swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.76k stars 270 forks source link

Multiple API - Getting 404s when running /example/multiple #228

Closed blink-daniel closed 2 years ago

blink-daniel commented 2 years ago

Getting 404s when running the below example: https://github.com/swaggo/gin-swagger/tree/master/example/multiple

Steps to reproduce:

  1. run the multiple api example
    gh repo clone swaggo/gin-swagger
    cd gin-swagger/example/multiple
    go run main.go 
  2. open http://localhost:8080/swagger/v1/index.html
  3. open http://localhost:8080/swagger/v2/index.html
  4. open again http://localhost:8080/swagger/v1/index.html
  5. the error should reproduce for instance v1 - blank page due to 404s. (instance v2 still works)

*Reproduced on macOS/Chrome on latest swag/gin-swagger master branch

blink-daniel commented 2 years ago

closing, duplicate of https://github.com/swaggo/gin-swagger/pull/224