Serve Swagger UI from embedded assets instead of unpkg CDN
Bundle swagger-ui-dist@5.32.5 (bundle + CSS) with go:embed and expose /docs/swagger-ui-bundle.js and /docs/swagger-ui.css so /docs works without external script loads (fixes timeouts when unpkg is unreachable). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2
internal/http/docs/swagger-ui-bundle.js
Normal file
2
internal/http/docs/swagger-ui-bundle.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user