With swagger API bound to a path, e.g. `"/swagger"...
# http4k
d
With swagger API bound to a path, e.g.
"/swagger" bind swaggerUiLite {…}
it works fine when requested with trailing slash, but without trailing slash, it fails to load
swagger-initializer.js
. I understand this is how URLs work, but it can be quite confusing. Why not inline
swagger-initializer.js
into
index.html
?
a
I didn't think of that 🤔 . But it seems like a good idea.
I might have done it this way so that the lite and webjar versions can share the same js file and not duplicate code.
👍 1