config/routes.rb in solidus_admin-0.2.0 vs config/routes.rb in solidus_admin-0.3.0

- old
+ new

@@ -24,10 +24,18 @@ admin_resources :orders, only: [:index] admin_resources :orders, except: [ :destroy, :index ], constraints: ->{ SolidusAdmin::Config.enable_alpha_features? } do + resources :adjustments, only: [:index] do + collection do + delete :destroy + put :lock + put :unlock + end + end + resources :line_items, only: [:destroy, :create, :update] resource :customer resource :ship_address, only: [:show, :edit, :update], controller: "addresses", type: "ship" resource :bill_address, only: [:show, :edit, :update], controller: "addresses", type: "bill" @@ -35,26 +43,35 @@ get :variants_for get :customers_for end end - admin_resources :users, only: [:index, :destroy] + admin_resources :users, only: [:index, :edit, :destroy] do + member do + get :addresses + put :update_addresses + get :orders + get :items + end + end + admin_resources :promotions, only: [:index, :destroy] admin_resources :properties, only: [:index, :destroy] admin_resources :option_types, only: [:index, :destroy], sortable: true admin_resources :taxonomies, only: [:index, :destroy], sortable: true admin_resources :promotion_categories, only: [:index, :destroy] - admin_resources :tax_categories, only: [:index, :destroy] + admin_resources :tax_categories, except: [:show] admin_resources :tax_rates, only: [:index, :destroy] admin_resources :payment_methods, only: [:index, :destroy], sortable: true admin_resources :stock_items, only: [:index, :edit, :update] admin_resources :shipping_methods, only: [:index, :destroy] - admin_resources :shipping_categories, only: [:index, :destroy] + admin_resources :shipping_categories, except: [:show] admin_resources :stock_locations, only: [:index, :destroy] admin_resources :stores, only: [:index, :destroy] admin_resources :zones, only: [:index, :destroy] - admin_resources :refund_reasons, only: [:index, :destroy] + admin_resources :refund_reasons, except: [:show] admin_resources :reimbursement_types, only: [:index] - admin_resources :return_reasons, only: [:index, :destroy] - admin_resources :adjustment_reasons, only: [:index, :destroy] - admin_resources :store_credit_reasons, only: [:index, :destroy] + admin_resources :return_reasons, except: [:show] + admin_resources :roles, except: [:show] + admin_resources :adjustment_reasons, except: [:show] + admin_resources :store_credit_reasons, except: [:show] end