Worked on home dashboard

This commit is contained in:
Torkel Ödegaard
2015-02-03 15:04:35 +01:00
parent bd470abcf0
commit 42a5aefb23
6 changed files with 46 additions and 6 deletions
+4 -3
View File
@@ -77,9 +77,10 @@ func Register(r *macaron.Macaron) {
}, reqAccountAdmin)
// Dashboard
r.Group("/dashboard", func() {
r.Combo("/:slug").Get(GetDashboard).Delete(DeleteDashboard)
r.Post("/", reqEditorRole, bind(m.SaveDashboardCommand{}), PostDashboard)
r.Group("/dashboards", func() {
r.Combo("/db/:slug").Get(GetDashboard).Delete(DeleteDashboard)
r.Post("/db", reqEditorRole, bind(m.SaveDashboardCommand{}), PostDashboard)
r.Get("/home", GetHomeDashboard)
})
// Search