mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Swagger: Add a custom swagger/api page (#91785)
Co-authored-by: Kristian Bremberg <kristian.bremberg@grafana.com>
This commit is contained in:
@@ -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