config/routes.rb in home_page-0.0.5 vs config/routes.rb in home_page-0.0.6
- old
+ new
@@ -2,9 +2,26 @@
devise_for :users, controllers: {
registrations: 'devise_extensions/registrations',
sessions: 'devise_extensions/sessions'
}
- resources :users, only: [:index, :edit, :update, :destroy]
+ resources :page_module_collections do
+ resources :modules, controller: 'page_modules', only: [:index, :new] do
+ collection do
+ put :move
+ end
+ end
+ end
+
+ resources :page_modules, only: [:index, :new, :create, :edit, :update, :destroy]
+ resources :page_module_collections_modules, only: [:create, :destroy]
+
+ resources :users, only: [:index, :show, :edit, :update, :destroy]
+
+ resources :settings, only: [:index, :show, :edit, :update] do
+ collection do
+ put :updates
+ end
+ end
root to: 'home#index'
end
\ No newline at end of file