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. |
||
|---|---|---|
| .. | ||
| api/v1 | ||
| caldav | ||
| api_tokens.go | ||
| error_handler.go | ||
| healthcheck.go | ||
| metrics.go | ||
| rate_limit.go | ||
| routes.go | ||
| sentry_middleware.go | ||
| static.go | ||
| validation.go | ||