Sha256: f95071daf86bf418fac643fc969af70da5f9783f657a0e2a0681d14cf6a817d2

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

Sprangular::Engine.routes.draw do
  scope module: 'sprangular' do
    root to: 'home#index'
    resources "locale", only: :show, param: :locale

    scope '/api', defaults: {format: :json} do
      resources :taxonomies, only: :index
      get 'taxons/*permalink', to: 'taxons#show'
      resources :products, only: %i(index show)
      resource :cart do
        post :add_variant
        post :guest_login
        put :update_variant
        put :change_variant
        put :remove_adjustment
        delete :remove_variant
      end
      resource :account
      resources :passwords
      resources :credit_cards, only: :destroy
      resources :countries, only: :index
      resources :shipping_rates, only: :index
      resources :orders, only: :show
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprangular-0.1.0 config/routes.rb