Skip to content

Commit

Permalink
fix: changed trigger/check method to PUT and body params
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kolkov authored and litleleprikon committed Mar 4, 2021
1 parent 37b0f33 commit 8d8dd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/handler/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func triggers(metricSourceProvider *metricSource.SourceProvider, searcher moira.
router.Use(middleware.SearchIndexContext(searcher))
router.Get("/", getAllTriggers)
router.Put("/", createTrigger)
router.Get("/check", triggerCheck)
router.Put("/check", triggerCheck)
router.Route("/{triggerId}", trigger)
router.With(middleware.Paginate(0, 10)).With(middleware.Pager(false, "")).Get("/search", searchTriggers)
// ToDo: DEPRECATED method. Remove in Moira 2.6
Expand Down

0 comments on commit 8d8dd0d

Please sign in to comment.