Swagger: Show k8s APIs (#78091)

This commit is contained in:
Ryan McKinley
2023-11-15 06:42:35 -08:00
committed by GitHub
parent e4d41e878f
commit b8e8d84ef7
8 changed files with 106 additions and 136 deletions

View File

@@ -213,8 +213,8 @@ func (hs *HTTPServer) registerRoutes() {
// expose plugin file system assets
r.Get("/public/plugins/:pluginId/*", hs.getPluginAssets)
r.Get("/swagger-ui", swaggerUI)
r.Get("/openapi3", openapi3)
// add swagger support
registerSwaggerUI(r)
if hs.Features.IsEnabledGlobally(featuremgmt.FlagClientTokenRotation) {
r.Post("/api/user/auth-tokens/rotate", routing.Wrap(hs.RotateUserAuthToken))