clarion/config/routes.rb

51 lines
1.2 KiB
Ruby
Raw Normal View History

2014-07-28 12:34:18 +03:00
Rails.application.routes.draw do
devise_for :users, controllers: {registrations: 'registrations', confirmations: 'confirmations'}
scope module: :public do
2015-08-15 06:00:07 +03:00
root to: 'home#index'
resource :personal_profile, path: 'profile'
2015-10-19 00:47:39 +03:00
resources :events do
member do
get :confirm
end
end
resources :volunteerships, only: [:index, :destroy]
resources :volunteer_teams, only: [] do
resource :volunteership, only: :create
end
end
namespace :api do
resources :conferences, only: [] do
resources :events, only: :index do
collection do
get :halfnarp_friendly
end
end
2015-10-08 02:34:19 +03:00
resources :speakers, only: :index
resources :tracks, only: :index
resources :event_types, only: :index
resources :halls, only: :index
resources :slots, only: :index
end
end
namespace :management do
root to: 'home#index'
resources :conferences do
2015-06-09 21:50:23 +03:00
resources :events
resources :volunteers
resources :propositions
2015-06-09 21:50:23 +03:00
resources :sponsorship_offers
resource :call_for_participation, only: [:create, :destroy]
2015-07-28 15:43:19 +03:00
resources :personal_profiles do
2015-06-09 21:50:23 +03:00
member do
put :toggle_admin
end
2015-05-30 16:34:49 +03:00
end
end
2014-09-17 12:43:17 +03:00
end
2014-07-28 12:34:18 +03:00
end