swagger
swagger copied to clipboard
Read from a location other then / to get resourceListingJson
I traced the swagger library network traffic in the browser to the point where "/" is fetched to read the resourceListingJson string.
When deployed, my server application is at: http://computer/application and when http://computer is read my application is not invoked so the following redirect code is never executed:
http.HandleFunc("/", IndexHandler)
I can't figure out a technique to get around this. Do you know of one?
(btw I love this project)
Is it possible to configure the swagger ui to have a root different then "/". In my example I would set the swagger ui root to "/application"