Resubmit a stored event as a new undelivered event (closes #250)
All checks were successful
check / check (push) Successful in 3m1s

This commit was merged in pull request #251.
This commit is contained in:
2026-08-24 00:53:37 +02:00
parent a83e8fe654
commit 89f3b984d2
11 changed files with 1279 additions and 148 deletions

View File

@@ -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(),