config/routes.rb in ahoy_email-0.0.1 vs config/routes.rb in ahoy_email-0.0.2
- old
+ new
@@ -1,9 +1,12 @@
Rails.application.routes.draw do
mount AhoyEmail::Engine => "/ahoy"
end
AhoyEmail::Engine.routes.draw do
- resources :messages, only: [] do
- get :open, on: :collection
+ scope module: "ahoy" do
+ resources :messages, only: [] do
+ get :open, on: :member
+ get :click, on: :member
+ end
end
end