mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:42:22 +08:00
feat(mixed datasources): continued work on editor design change
This commit is contained in:
@ -112,5 +112,13 @@ func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) {
|
||||
}
|
||||
|
||||
func GetDataSourcePlugins(c *middleware.Context) {
|
||||
c.JSON(200, plugins.DataSources)
|
||||
dsList := make(map[string]interface{})
|
||||
|
||||
for key, value := range plugins.DataSources {
|
||||
if value.(map[string]interface{})["hide"] == nil {
|
||||
dsList[key] = value
|
||||
}
|
||||
}
|
||||
|
||||
c.JSON(200, dsList)
|
||||
}
|
||||
|
Reference in New Issue
Block a user