config/routes.rb in comable_backend-0.3.4 vs config/routes.rb in comable_backend-0.4.0

- old
+ new

@@ -4,20 +4,47 @@ resource :dashboard, only: :show resources :products do resources :stocks + + collection do + get :export + post :import + end end - resources :stocks + resources :stocks do + collection do + get :export + post :import + end + end + + resources :orders do + collection do + get :export + end + + member do + post :cancel + post :resume + post :cancel_payment + post :resume_payment + post :ship + post :cancel_shipment + post :resume_shipment + end + end + resources :categories - resources :orders - resources :customers + resources :users resources :shipment_methods resources :payment_methods + resources :trackers resource :store, controller: :store, only: [:show, :edit, :update] - devise_for :customer, path: :user, class_name: Comable::Customer.name, module: :devise, controllers: { + devise_for :user, path: :user, class_name: Comable::User.name, module: :devise, controllers: { sessions: 'comable/admin/user_sessions' } end end