Sha256: 4b0206c93ca90ecee08682f2775c796d2aceafa26ef5034e6372621def485724

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

SolidusFriendlyPromotions::Engine.routes.draw do
  namespace :admin do
    scope :friendly do
      resources :promotion_categories, except: [:show]

      resources :promotions do
        resources :benefits do
          resources :conditions
        end
        resources :promotion_codes, only: [:index, :new, :create]
        resources :promotion_code_batches, only: [:index, :new, :create] do
          get "/download", to: "promotion_code_batches#download", defaults: {format: "csv"}
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 config/routes.rb
solidus_friendly_promotions-1.9.2 config/routes.rb
solidus_friendly_promotions-1.9.1 config/routes.rb
solidus_friendly_promotions-1.9.0 config/routes.rb