Sha256: 9114c25f480f30abdd5dbcb5fa99c1c59d57b17c3f745b626ad767fab1eb87be

Contents?: true

Size: 1.08 KB

Versions: 14

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

Rails.application.routes.draw do
  scope "/rails/action_mailbox", module: "action_mailbox/ingresses" do
    post "/mandrill/inbound_emails" => "mandrill/inbound_emails#create", as: :rails_mandrill_inbound_emails
    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

    # Mailgun requires that a webhook's URL end in 'mime' for it to receive the raw contents of emails.
    post "/mailgun/inbound_emails/mime" => "mailgun/inbound_emails#create", as: :rails_mailgun_inbound_emails
  end

  # TODO: Should these be mounted within the engine only?
  scope "rails/conductor/action_mailbox/", module: "rails/conductor/action_mailbox" do
    resources :inbound_emails, as: :rails_conductor_inbound_emails
    post ":inbound_email_id/reroute" => "reroutes#create", as: :rails_conductor_inbound_email_reroute
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
actionmailbox-6.0.2.2 config/routes.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/actionmailbox-6.0.2.1/config/routes.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/actionmailbox-6.0.2.1/config/routes.rb
actionmailbox-6.0.2.1 config/routes.rb
actionmailbox-6.0.2 config/routes.rb
actionmailbox-6.0.2.rc2 config/routes.rb
actionmailbox-6.0.2.rc1 config/routes.rb
actionmailbox-6.0.1 config/routes.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionmailbox-6.0.0/config/routes.rb
actionmailbox-6.0.1.rc1 config/routes.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionmailbox-6.0.0/config/routes.rb
actionmailbox-6.0.0 config/routes.rb
actionmailbox-6.0.0.rc2 config/routes.rb
actionmailbox-6.0.0.rc1 config/routes.rb