Sha256: 9ae46d8d4b133535fae5dd39ab05a7c04396aa8d7f3f3a2a99ea960a6328da10

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 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 :promotion_rules
        resources :promotion_actions
        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

5 entries across 5 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.0.0 config/routes.rb
solidus_friendly_promotions-1.0.0.rc.3 config/routes.rb
solidus_friendly_promotions-1.0.0.rc.2 config/routes.rb
solidus_friendly_promotions-1.0.0.rc.1 config/routes.rb
solidus_friendly_promotions-1.0.0.pre config/routes.rb