iris-contrib / swagger

Iris middleware to automatically generate RESTful API documentation with Swagger 2.0
MIT License
115 stars 32 forks source link

[FEATURE REQUEST] Custom oauth2RedirectUrl #20

Closed chucamphong closed 1 year ago

chucamphong commented 1 year ago

Is your feature request related to a problem? Please describe. My project is running locally with port 44000 but Swagger always redirects to localhost:3200. I want to change oauth2RedirectUrl so it can redirect properly.

Describe the solution you'd like

swaggerUI := swagger.WrapHandler(swaggerFiles.Handler, swagger.Config{
  Oauth2RedirectUrl: "http://localhost:44000",
})