Rails.application.routes.draw do mount Mailkick::Engine => "/mailkick" if Mailkick.mount end Mailkick::Engine.routes.draw do resources :subscriptions, only: [:show] do get :unsubscribe, on: :member get :subscribe, on: :member end end