Swagger: Add a custom swagger/api page (#91785)
Co-authored-by: Kristian Bremberg <kristian.bremberg@grafana.com>
This commit is contained in:
co-authored by
Kristian Bremberg
parent
dacf11b048
commit
427dad26a2
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user