Sha256: 2b6b1c82b3552b434c92dec9ad467ed508bd480fa1d1c966778e1f8604e23069
Contents?: true
Size: 545 Bytes
Versions: 12
Compression:
Stored size: 545 Bytes
Contents
StaticBlocks::Engine.routes.draw do scope ":locale", locale: /#{StaticBlocks.config.locales.join("|")}/ do resources :snippets do collection do get 'export' get 'export_translations' post :import post :import_translations end end root to: 'snippets#index' end match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" } match '', to: redirect("/static_blocks/#{I18n.default_locale}/snippets") end
Version data entries
12 entries across 12 versions & 1 rubygems