Datasource options are now included in bootData

This commit is contained in:
Torkel Ödegaard
2014-12-28 19:30:14 +01:00
parent f3132b4513
commit ec98c201e4
5 changed files with 15 additions and 112 deletions

View File

@ -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