Worked on home dashboard

This commit is contained in:
Torkel Ödegaard committed 2015-02-03 15:04:35 +01:00
1 parent bd470abcf0
commit 42a5aefb23
6 files changed
+46 -6

No files matched your search

+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