Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.
Go email-relayemail-routinghttp-to-smtpmail-deliverymailchimp-alternativemailgun-alternativemailsendermailservermailtemplatemailtestpostmark-alternativesend-emailsendgrid-alternativesendmailtransactional-emailtransactional-outbox
fix path id name
Jonas Kanindab39a622266ea
diff --git a/internal/handlers/inbound_handler.go b/internal/handlers/inbound_handler.goindex a321f2b..707770f 100644--- a/internal/handlers/inbound_handler.go+++ b/internal/handlers/inbound_handler.go@@ -393,8 +393,8 @@ func (h *InboundHandler) DownloadAttachmentAuthed(c *okapi.Context, req *Inbound// InboundAttachmentOwnedRequest is the path-params-only variant used by authed users.type InboundAttachmentOwnedRequest struct {- UUID string `param:"uuid"`- Index int `param:"idx"`+ UUID string `param:"id" doc:"Inbound email UUID"`+ Index int `param:"idx" doc:"Zero-based attachment index"`}// GetRaw streams the raw RFC 5322 message bytes (if stored).diff --git a/internal/routes/inbound_routes.go b/internal/routes/inbound_routes.goindex 01a2eef..5c406fd 100644--- a/internal/routes/inbound_routes.go+++ b/internal/routes/inbound_routes.go@@ -112,7 +112,7 @@ func (r *Router) inboundWorkspaceRoutes() []okapi.RouteDefinition {},{Method: http.MethodGet,- Path: "/inbound-emails/{uuid}/attachments/{idx:int}",+ Path: "/inbound-emails/{id}/attachments/{idx:int}",Handler: okapi.H(r.h.inbound.DownloadAttachmentAuthed),Group: userGroup,Summary: "Download an inbound email attachment (authenticated)",