Add options to manage snapshot publishing

This commit is contained in:
shoonoise
2015-10-14 17:39:57 +03:00
parent 3b4c095b49
commit b4a2b96e32
7 changed files with 43 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ func Register(r *macaron.Macaron) {
r.Post("/api/snapshots/", bind(m.CreateDashboardSnapshotCommand{}), CreateDashboardSnapshot)
r.Get("/dashboard/snapshot/*", Index)
r.Get("/api/snapshot/shared-options/", GetSharingOptions)
r.Get("/api/snapshots/:key", GetDashboardSnapshot)
r.Get("/api/snapshots-delete/:key", DeleteDashboardSnapshot)