Sha256: 70e27380adca22ff67b9803712324dfb1e6b866a71f8893f3d874e9343c024cc

Contents?: true

Size: 914 Bytes

Versions: 13

Compression:

Stored size: 914 Bytes

Contents

# frozen_string_literal: true

Rails.application.routes.draw do
  mount EffectiveProducts::Engine => '/', as: 'effective_products'
end

EffectiveProducts::Engine.routes.draw do
  # Public routes
  scope module: 'effective' do
    resources :ring_wizards, name: :ring_wizard, only: [:new, :show, :destroy] do
      resources :build, controller: :ring_wizards, only: [:show, :update]
    end

    resources :stamp_wizards, name: :stamp_wizard, only: [:new, :show, :destroy] do
      resources :build, controller: :stamp_wizards, only: [:show, :update]
    end
  end

  namespace :admin do
    resources :ring_wizards, except: [:new, :create, :show]

    resources :rings, only: [:index, :show] do
      post :mark_as_submitted, on: :member
      post :mark_as_issued, on: :member
    end

    resources :stamps do
      post :mark_as_submitted, on: :member
      post :mark_as_issued, on: :member
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_products-0.3.10 config/routes.rb
effective_products-0.3.9 config/routes.rb
effective_products-0.3.8 config/routes.rb
effective_products-0.3.7 config/routes.rb
effective_products-0.3.6 config/routes.rb
effective_products-0.3.5 config/routes.rb
effective_products-0.3.4 config/routes.rb
effective_products-0.3.3 config/routes.rb
effective_products-0.3.2 config/routes.rb
effective_products-0.3.1 config/routes.rb
effective_products-0.3.0 config/routes.rb
effective_products-0.2.1 config/routes.rb
effective_products-0.2.0 config/routes.rb