Reputation: 38458
I am using Action Mailbox and have configured it to use Sendgrid. However my routes are now polluted with with inbound end points for other services like Mailgun etc.
They are defined, in the action mailbox gem like so:
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
How can I get rid of redundant routes or change them?
Upvotes: 2
Views: 221