Move the redoc HTML template and JavaScript bundle out of the Go const in docs.go into separate files under pkg/routes/api/v1/redoc/, using Go's embed directive. Update redoc.standalone.js to the latest version. The JS is now served on a separate route (/api/v1/docs/redoc.standalone.js) to keep the HTML and JS cleanly separated. |
||
|---|---|---|
| .. | ||
| redoc.html | ||
| redoc.standalone.js | ||