Sha256: f1fb0f654010bd3e846a203585ef24d86b0a19986544265ccf43d0304e093dea

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

Spree::Core::Engine.routes.draw do
  # from routing-filter gem
  filter :locale

  post '/locale/set', to: 'locale#set', defaults: { format: :json }, as: :set_locale

  namespace :api do
    scope :config do
      resources :available_locales, only: [:update, :index]
    end
  end

  namespace :admin do
    resource :locale, only: [:show, :update]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_i18n-1.3.0 config/routes.rb