1

我正在使用Action Mailbox并将其配置为使用 Sendgrid。但是,我的路线现在被 Mailgun 等其他服务的入站端点污染了。

它们是在动作邮箱 gem中定义的,如下所示:

 post "/postmark/inbound_emails" => "postmark/inbound_emails#create", as: :rails_postmark_inbound_emails
 post "/relay/inbound_emails"    => "relay/inbound_emails#create",    as: :rails_relay_inbound_emails
 post "/sendgrid/inbound_emails" => "sendgrid/inbound_emails#create", as: :rails_sendgrid_inbound_emails

 # Mandrill checks for the existence of a URL with a HEAD request before it will create the webhook.
 get "/mandrill/inbound_emails"  => "mandrill/inbound_emails#health_check", as: :rails_mandrill_inbound_health_check
 post "/mandrill/inbound_emails" => "mandrill/inbound_emails#create",       as: :rails_mandrill_inbound_emails

如何摆脱冗余路由或更改它们?

4

0 回答 0