Sha256: 6608d61c2945e50fe7f862dc7483771093dd515ca97d2ae423185a3e3d70f6b0

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

Rails.application.routes.draw do
  unless respond_to?(:has_named_route?) && has_named_route?("mailkick")
    mount Mailkick::Engine => "/mailkick" if Mailkick.mount
  end
end

Mailkick::Engine.routes.draw do
  resources :subscriptions, only: [:show] do
    match :unsubscribe, on: :member, via: [:get, :post]
    get :subscribe, on: :member
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mailkick-1.3.1 config/routes.rb
mailkick-1.3.0 config/routes.rb