Swagger: Add a custom swagger/api page (#91785)

Co-authored-by: Kristian Bremberg <kristian.bremberg@grafana.com>
This commit is contained in:
Ryan McKinley
2024-08-14 09:03:00 +03:00
committed by GitHub
parent dacf11b048
commit 427dad26a2
18 changed files with 3838 additions and 1751 deletions

View File

@@ -220,7 +220,7 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/public/plugins/:pluginId/*", hs.getPluginAssets)
// add swagger support
registerSwaggerUI(r)
hs.registerSwaggerUI(r)
r.Post("/api/user/auth-tokens/rotate", routing.Wrap(hs.RotateUserAuthToken))
r.Get("/user/auth-tokens/rotate", routing.Wrap(hs.RotateUserAuthTokenRedirect))