Sha256: d3faa423c4715bb3804fa1086da5b93f8ff79f3ba8ab86f20ff3045c525dc0d2

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 Bytes

Contents

Workarea::Storefront::Engine.routes.draw do
  scope "(:locale)", constraints: Workarea::I18n.routes_constraint do
    resources :products, only: [:show] do
      get "video/:video_id", to: "products#video", as: :video
    end
  end
end

Workarea::Admin::Engine.routes.draw do
  scope "(:locale)", constraints: Workarea::I18n.routes_constraint do
    resources :catalog_products, only: [:index] do
      resources :videos, controller: "catalog_product_videos"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-product_videos-1.3.0 config/routes.rb
workarea-product_videos-1.2.3 config/routes.rb
workarea-product_videos-1.2.2 config/routes.rb