Sha256: 607f2dc502051ee96d46206b77195b533c34cd50ab2442d44e8d500c6b96e5a7

Contents?: true

Size: 828 Bytes

Versions: 6

Compression:

Stored size: 828 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_issued, on: :member
    end

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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_products-0.1.2 config/routes.rb
effective_products-0.1.1 config/routes.rb
effective_products-0.1.0 config/routes.rb
effective_products-0.0.9 config/routes.rb
effective_products-0.0.8 config/routes.rb
effective_products-0.0.7 config/routes.rb