mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
new endpoint to post/get trimmed dashboard json (#33465)
* new endpoint to post/get trimed dashboard json * add isdisabled check in dashboard.go
This commit is contained in:
@@ -324,6 +324,7 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
dashboardRoute.Delete("/db/:slug", routing.Wrap(hs.DeleteDashboardBySlug))
|
||||
|
||||
dashboardRoute.Post("/calculate-diff", bind(dtos.CalculateDiffOptions{}), routing.Wrap(CalculateDashboardDiff))
|
||||
dashboardRoute.Post("/trim", bind(models.TrimDashboardCommand{}), routing.Wrap(hs.TrimDashboard))
|
||||
|
||||
dashboardRoute.Post("/db", bind(models.SaveDashboardCommand{}), routing.Wrap(hs.PostDashboard))
|
||||
dashboardRoute.Get("/home", routing.Wrap(hs.GetHomeDashboard))
|
||||
|
||||
Reference in New Issue
Block a user