swagger icon indicating copy to clipboard operation
swagger copied to clipboard

Read from a location other then / to get resourceListingJson

Open powellquiring opened this issue 9 years ago • 1 comments

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)

powellquiring avatar Nov 18 '15 01:11 powellquiring

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"

powellquiring avatar Nov 18 '15 15:11 powellquiring