config/routes.rb in comable_backend-0.2.3 vs config/routes.rb in comable_backend-0.3.0
- old
+ new
@@ -1,8 +1,20 @@
Comable::Core::Engine.routes.draw do
namespace :admin do
- root to: 'products#index'
+ root to: 'dashboard#show'
+ resource :dashboard, only: :show
+
+ resources :products do
+ resources :stocks
+ end
+
+ resources :categories
+ resources :orders
+ resources :customers
resources :shipment_methods
- resource :store, controller: :store
+ resources :payment_methods
+ resource :store, controller: :store, only: [:show, :edit, :update]
+
+ devise_for :customer, path: :user, class_name: Comable::Customer.name, module: :devise
end
end