Sha256: 10b068dbee06ad7861e128ca6edfe848a3cfe8e48e5825f9b98950b1049d8da3

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

MailManager::Engine.routes.draw do
  resources :mailings do
    member do
      post :send_test
      get :test
      get :schedule
      get :pause
      get :cancel
    end
    resources :messages, only: [:index]
  end

  resources :bounces, only: [:index, :show] do
    member do
      get :dismiss
      get :fail_address
    end
  end

  resources :mailing_lists do
    resources :subscriptions, only: [:index,:new]
  end

  resources :contacts do
    member do
      get :send_one_off_message
    end
  end
end

Rails.application.routes.draw do  # NOT MyEngineName::Engine.routes.draw
  begin
    unsubscribe_path = "#{MailManager.site_path}#{MailManager.unsubscribe_path}"
  rescue => e
    unsubscribe_path = '/listmgr'
  end
  unsubscribe_path = '/listmgr' if unsubscribe_path.blank?

  match "#{unsubscribe_path}/:guid", :controller => 'mail_manager/subscriptions', 
    :action => 'unsubscribe'
  match '/unsubscribe_by_email_address' => 'mail_manager/subscriptions#unsubscribe_by_email_address', as: 'unsubscribe_by_email_address'

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 config/routes.rb
mail_manager-0.1.4 config/routes.rb
mail_manager-0.1.2 config/routes.rb
mail_manager-0.1.1 config/routes.rb
mail_manager-0.1.0 config/routes.rb
mail_manager-0.0.1 config/routes.rb