mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 07:42:23 +08:00
Datasource options are now included in bootData
This commit is contained in:
@ -46,15 +46,12 @@ func Register(m *macaron.Macaron) {
|
||||
m.Post("/api/dashboard/", auth, PostDashboard)
|
||||
m.Delete("/api/dashboard/:slug", auth, DeleteDashboard)
|
||||
|
||||
// frontend config
|
||||
m.Get("/frontend/config", auth, GetConfigJS)
|
||||
|
||||
// rendering
|
||||
m.Get("/render/*", auth, RenderToPng)
|
||||
}
|
||||
|
||||
func Index(ctx *middleware.Context) {
|
||||
settings, err := getFrontendSettings(ctx.GetAccountId())
|
||||
settings, err := getFrontendSettings(ctx)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "Failed to get settings", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user