Refactoring search to support more than just db dashboards

This commit is contained in:
Torkel Ödegaard
2015-05-13 10:45:53 +02:00
parent fb35f7210c
commit bb7d79e6d2
9 changed files with 61 additions and 58 deletions
+11
View File
@@ -140,3 +140,14 @@ func GetDashboardFromJsonFile(c *middleware.Context) {
c.JSON(200, &dash)
}
func GetDashboardTags(c *middleware.Context) {
query := m.GetDashboardTagsQuery{OrgId: c.OrgId}
err := bus.Dispatch(&query)
if err != nil {
c.JsonApiErr(500, "Failed to get tags from database", err)
return
}
c.JSON(200, query.Result)
}