Sha256: 27bab288acc5ba6cc9f80d63f9c1daec0be59b83376b3c5c88c56d40676f3590
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 Bytes
Contents
Enjoy::Catalog::Engine.routes.draw do routes_config = Enjoy::Catalog.configuration.routes_config if !routes_config or routes_config[:use_items_path] resources :items, only: [:show] do get '(/page/:page)', action: :index, on: :collection, as: "" end end if !routes_config or routes_config[:use_item_categories_path] resources :item_categories, only: [:index, :show] do get 'items(/page/:page)', action: :items, on: :member, as: :items end end if !routes_config or routes_config[:use_catalog_path] get 'catalog' => 'item_categories#index', as: :catalog end end
Version data entries
7 entries across 7 versions & 1 rubygems