config/routes.rb in mail_engine-0.0.1 vs config/routes.rb in mail_engine-0.1.0
- old
+ new
@@ -1,28 +1,26 @@
module MailEngine
Rails.application.routes.draw do
- scope "/admin", :module => :mail_engine do
+ scope MailEngine::Base.current_config["mount_at"], :module => :mail_engine do
match '/', :controller => "dashboard", :action => "index", :as => :mail_engine_dashboard
resources :mail_templates do
member do
get :duplicate
put :duplicate
-
get :preview
post :preview
-
get :body
post :body
-
post :send_test_mail
end
collection do
- # used before mail template be saved
+ # used before mail template been saved
post :preview
+ get :get_existed_subject
get :new_by_upload
post :create_by_upload
post :partial_options
end
@@ -33,15 +31,16 @@
member do
post :send_test_mail
end
end
- resources :mail_logs
resources :reports do
collection do
get :chart
end
end
+
+ resources :mail_logs
end
# match ':controller(/:action(/:id(.:format)))', :controller => /admin\/[^\/]+/
end
end
\ No newline at end of file