You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two parts of my application, the API that is defined by my swagger spec, and a static HTML UI. I would like to serve my API under the /api path and the UI under /ui.
Is there another step required to wire up the middleware handling for my /ui route? Someone had suggested adding paths to the swagger spec, but since this isn't part of my API, I'd really rather not have to define every path for it in my API spec.
I'm sure I'm missing something basic here, but so far it hasn't been obvious to me. Any pointers would be appreciated. Happy to expand on the FAQ entry with a PR once I understand what's missing.
The text was updated successfully, but these errors were encountered:
Problem statement
I have two parts of my application, the API that is defined by my swagger spec, and a static HTML UI. I would like to serve my API under the
/api
path and the UI under/ui
.I followed the instructions in https://github.com/go-swagger/go-swagger/blob/master/docs/faq/faq_documenting.md#how-to-serve-my-ui-files but it seems like I'm missing something else that isn't described in the docs. It looks like the requests for things under
/ui
aren't being routed to the middleware handler, and they result in a 404 response.Is there another step required to wire up the middleware handling for my
/ui
route? Someone had suggested adding paths to the swagger spec, but since this isn't part of my API, I'd really rather not have to define every path for it in my API spec.I'm sure I'm missing something basic here, but so far it hasn't been obvious to me. Any pointers would be appreciated. Happy to expand on the FAQ entry with a PR once I understand what's missing.
The text was updated successfully, but these errors were encountered: