Open applejag opened 2 years ago
you can get in ginswagger.WrapHandler -> CustomWrapHandler you can see once.Do(func() { handler.Prefix = matches[1] }) and handler.ServeHTTP(c.Writer, c.Request), that means when the first request url is where .js、.css in, so you have to use the same url as the first request url or replace /swagger/*any with a specific route
The CSS & JS files all respond with 404. Even using the example from the README.md I still get the same results.
https://github.com/swaggo/gin-swagger/blob/b9e926c528e8b8269d0241b3053144235eef4e90/README.md?plain=1#L99-L136
Maybe related: https://github.com/swaggo/http-swagger/issues/10, don't know if the issue is in this codebase or in some dependency, but it's not working here as well.