Sha256: be394dcc3e010d1373b1cbe70c1cde07873b8823cf2c6374cc4dd6a60d51543c

Contents?: true

Size: 1.39 KB

Versions: 13

Compression:

Stored size: 1.39 KB

Contents

Rails.application.routes.draw do

  root to: 'nimbleshop_simply/products#index'

  get '/admin',           to: 'admin/main#index'

  namespace :admin do

    resource  :shop,            only: [:update, :edit]

    resource  :payment_gateway
    resources :payment_methods

    resources :products,        except: [:show]
    resources :product_groups
    resources :custom_fields

    resources :orders do
      resources :shipments,      except: [:edit, :update]
      member do
        put :capture_payment
        put :purchase_payment
      end
    end

    resources :country_shipping_zones, controller: :shipping_zones do
      resources :shipping_methods
    end

    resources :regional_shipping_zones, controller: :shipping_zones do
      resources :shipping_methods do
        member do
          put :update_offset
          put :disable
          put :enable
        end
      end
    end

    resources :shipping_zones do
      resources :shipping_methods
    end

    resources :link_groups do
      resources :navigations, only: [:create, :new, :destroy] 
    end

  end

  mount NimbleshopAuthorizedotnet::Engine, at: '/nimbleshop_authorizedotnet'
  mount NimbleshopPaypalwp::Engine,        at: '/nimbleshop_paypalwp'
  mount NimbleshopSplitable::Engine,       at: '/nimbleshop_splitable'
  mount NimbleshopCod::Engine,             at: '/nimbleshop_cod'
  mount NimbleshopSimply::Engine,          at: '/'

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
nimbleshop_core-0.0.5 config/routes.rb
nimbleshop_core-0.0.4.beta1 config/routes.rb
nimbleshop_core-0.0.4 config/routes.rb
nimbleshop_core-0.0.3 config/routes.rb
nimbleshop_core-0.0.2 config/routes.rb
nimbleshop_core-0.0.2.beta1 config/routes.rb
nimbleshop_core-0.0.1 config/routes.rb
nimbleshop_core-0.0.1.rc6 config/routes.rb
nimbleshop_core-0.0.1.rc5 config/routes.rb
nimbleshop_core-0.0.1.rc4 config/routes.rb
nimbleshop_core-0.0.1.rc3 config/routes.rb
nimbleshop_core-0.0.1.rc2 config/routes.rb
nimbleshop_core-0.0.1.rc1 config/routes.rb