more work on dashboard snapshots

This commit is contained in:
Torkel Ödegaard
2015-03-21 08:53:16 -04:00
parent a76758255f
commit 964f0861d6
13 changed files with 240 additions and 21 deletions

View File

@@ -41,6 +41,10 @@ func Register(r *macaron.Macaron) {
r.Get("/signup", Index)
r.Post("/api/user/signup", bind(m.CreateUserCommand{}), SignUp)
// dashboard snapshots
r.Post("/api/snapshots/", bind(m.CreateDashboardSnapshotCommand{}), CreateDashboardSnapshot)
r.Get("/api/snapshots/:key", GetDashboardSnapshot)
// authed api
r.Group("/api", func() {
// user