Open PatrickRice-KSC opened 1 year ago
@PatrickRice-KSC For the moment there is no way to use files (v2) with gin-swagger at this time. The change is a breaking one and a v2 of gin-swagger needs to be created.
@ubogdan gotcha, thanks! I'll watch for the new version :)
This is affecting us as well now.
I'm trying to update to use the newest version of swaggo files (2.0), released 2 weeks ago. In that version, I see the
Handler
function was removed, and now the underlyingfiles
package simple exposes an embedded file system.So I updated my router to use
StaticFS
to host that file system instead of registering aGET
handler, but that simply hosts a PetStore swagger UI instead.How should we use the file system reference to ensure that the correct swagger UI is hosted?