Sha256: 7c5192a4319685d2fb99e1f061247d576ac88982b2940c997905d8170657b0ca

Contents?: true

Size: 774 Bytes

Versions: 6

Compression:

Stored size: 774 Bytes

Contents

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

EffectiveMentorships::Engine.routes.draw do
  scope module: 'effective' do
    resources :mentorship_cycles, only: [] do
      resources :mentorship_registrations, except: [:index, :show]
    end

    resources :mentorship_groups, only: [:show]
  end

  namespace :admin do
    resources :mentorship_cycles, except: [:show]
    resources :mentorship_registrations, except: [:show]

    resources :mentorship_groups, except: [:show] do
      post :archive, on: :member
      post :unarchive, on: :member
      post :bulk_archive, on: :collection
      post :bulk_unarchive, on: :collection
    end

    resources :mentorship_group_users, except: [:show]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_mentorships-0.2.4 config/routes.rb
effective_mentorships-0.2.3 config/routes.rb
effective_mentorships-0.2.2 config/routes.rb
effective_mentorships-0.2.1 config/routes.rb
effective_mentorships-0.2.0 config/routes.rb
effective_mentorships-0.1.0 config/routes.rb