mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 08:32:37 +08:00
feat(notifications): make it possible to send test alert notifications
closes #5847
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user