Resubmit a stored event as a new undelivered event (closes #250)
All checks were successful
check / check (push) Successful in 3m1s
All checks were successful
check / check (push) Successful in 3m1s
This commit was merged in pull request #251.
This commit is contained in:
@@ -213,6 +213,18 @@ func (s *Server) setupSourceRoutes() {
|
||||
"/deliveries/{deliveryID}/replay",
|
||||
s.h.HandleDeliveryReplay(),
|
||||
)
|
||||
// Resubmit is the other page action that queues outbound
|
||||
// work: it copies a stored event into a new one and fans
|
||||
// that out to every currently active target. It is
|
||||
// deliberately repeatable, so the rate limit is the only
|
||||
// bound on a held-down button; it gets its own bucket so
|
||||
// that spending it does not also disable replay. POST
|
||||
// only, so the action cannot be taken by a link, a
|
||||
// prefetch or an image tag.
|
||||
r.With(s.mw.ResubmitRateLimit()).Post(
|
||||
"/events/{eventID}/resubmit",
|
||||
s.h.HandleEventResubmit(),
|
||||
)
|
||||
r.Post(
|
||||
"/entrypoints",
|
||||
s.h.HandleEntrypointCreate(),
|
||||
|
||||
Reference in New Issue
Block a user