Sha256: 4f3cfb0a91dd14426d5f0a42b99cd392329661db30443451b3dd5157828cc427

Contents?: true

Size: 817 Bytes

Versions: 9

Compression:

Stored size: 817 Bytes

Contents

# frozen_string_literal: true

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

EffectiveEvents::Engine.routes.draw do
  # Public routes
  scope module: 'effective' do
    resources :events, only: [:index, :show] do
      resources :event_registrations, only: [:new, :show, :destroy] do
        resources :build, controller: :event_registrations, only: [:show, :update]
      end
    end
  end

  namespace :admin do
    resources :events, except: [:show]
    resources :event_tickets, except: [:show]
    resources :event_products, except: [:show]
    resources :event_registrants, except: [:show]
    resources :event_addons, except: [:show]
    resources :event_registrations, only: [:index, :show]
    resources :event_notifications, except: [:show]
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_events-0.2.8 config/routes.rb
effective_events-0.2.7 config/routes.rb
effective_events-0.2.6 config/routes.rb
effective_events-0.2.5 config/routes.rb
effective_events-0.2.4 config/routes.rb
effective_events-0.2.3 config/routes.rb
effective_events-0.2.2 config/routes.rb
effective_events-0.2.1 config/routes.rb
effective_events-0.2.0 config/routes.rb