Sha256: 37edd5924a71fd64c58d3ac68908baa3ee80561971dd3fed26e5ece1f039cc93

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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_payments, only: [:new, :show, :destroy] do
      resources :build, controller: :ring_payments, only: [:show, :update]
    end
  end

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

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_products-0.0.2 config/routes.rb