feat(notifications): make it possible to send test alert notifications

closes #5847
This commit is contained in:
bergquist
2016-09-05 14:43:53 +02:00
parent 4c5461d4ba
commit d11bc57c37
7 changed files with 163 additions and 3 deletions

View File

@ -259,6 +259,7 @@ func Register(r *macaron.Macaron) {
r.Get("/alert-notifications", wrap(GetAlertNotifications))
r.Group("/alert-notifications", func() {
r.Post("/test", bind(dtos.NotificationTestCommand{}), wrap(NotificationTest))
r.Post("/", bind(m.CreateAlertNotificationCommand{}), wrap(CreateAlertNotification))
r.Put("/:notificationId", bind(m.UpdateAlertNotificationCommand{}), wrap(UpdateAlertNotification))
r.Get("/:notificationId", wrap(GetAlertNotificationById))