feat(alerting): pausing alerts requires alert id

This commit is contained in:
bergquist
2016-10-11 10:53:24 +02:00
parent 8b0c29b104
commit c6cf7647ff
4 changed files with 7 additions and 44 deletions

View File

@ -252,14 +252,12 @@ func Register(r *macaron.Macaron) {
r.Group("/alerts", func() {
r.Post("/test", bind(dtos.AlertTestCommand{}), wrap(AlertTest))
r.Post("/:alertId/pause", ValidateOrgAlert, bind(dtos.PauseAlertCommand{}), wrap(PauseAlert))
r.Get("/:alertId", ValidateOrgAlert, wrap(GetAlert))
r.Get("/", wrap(GetAlerts))
r.Get("/states-for-dashboard", wrap(GetAlertStatesForDashboard))
})
r.Post("/pause-alert", bind(dtos.PauseAlertCommand{}), wrap(PauseAlert))
r.Get("/alert-notifications", wrap(GetAlertNotifications))
r.Group("/alert-notifications", func() {