mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
Moved api in correct group
This commit is contained in:
parent
8357cdf591
commit
8afd56575c
@ -171,10 +171,7 @@ func Register(r *macaron.Macaron) {
|
||||
r.Put("/:id", bind(m.UpdateDataSourceCommand{}), UpdateDataSource)
|
||||
r.Delete("/:id", DeleteDataSource)
|
||||
r.Get("/:id", wrap(GetDataSourceById))
|
||||
}, reqOrgAdmin)
|
||||
|
||||
r.Group("/datasources/name/:name", func() {
|
||||
r.Get("/", wrap(GetDataSourceByName))
|
||||
r.Get("/name/:name", wrap(GetDataSourceByName))
|
||||
}, reqOrgAdmin)
|
||||
|
||||
r.Get("/frontend/settings/", GetFrontendSettings)
|
||||
|
Loading…
Reference in New Issue
Block a user