feat(alerting): skeleton for alert notification configuration page

This commit is contained in:
bergquist
2016-06-16 08:16:16 +02:00
parent 4c5d2d6079
commit a3b7ea7704
7 changed files with 93 additions and 7 deletions
+7
View File
@@ -59,6 +59,7 @@ func Register(r *macaron.Macaron) {
r.Get("/playlists/", reqSignedIn, Index)
r.Get("/playlists/*", reqSignedIn, Index)
r.Get("/alerting/", reqSignedIn, Index)
r.Get("/alerting/*", reqSignedIn, Index)
// sign up
r.Get("/signup", Index)
@@ -250,6 +251,12 @@ func Register(r *macaron.Macaron) {
r.Get("/", wrap(GetAlerts))
})
r.Get("/notifications", wrap(GetAlertNotifications))
r.Group("/notification", func() {
r.Post("/", bind(m.CreateAlertNotificationCommand{}), wrap(CreateAlertNotification))
r.Put("/", bind(m.UpdateAlertNotificationCommand{}), wrap(UpdateAlertNotification))
})
r.Get("/changes", wrap(GetAlertChanges))
})