config/routes.rb in phcmemberspro-3.2.0 vs config/routes.rb in phcmemberspro-3.3.0
- old
+ new
@@ -1,9 +1,19 @@
Phcmemberspro::Engine.routes.draw do
constraints(Mtdevise::Constraints::SubdomainRequired) do
+ # Application API
+ namespace :api do
+
+ # Routes for API
+ resources :catsapi, defaults: {format: 'json'} do
+ resources :listapi
+ end
+
+ end
+
# Application Client Backend
namespace :members do
# Members Main Index
root 'mains#index'
@@ -14,10 +24,11 @@
resources :contacts
# Auto Complete Routes
get :autocomplete_members_contact_mccompanyname, :on => :collection
end
+
end
namespace :directory do
# Directory Main Index
@@ -30,9 +41,7 @@
end
end
mount Mtdevise::Engine, :at => '/'
-
-
end