2014-07-28 12:34:18 +03:00
|
|
|
Rails.application.routes.draw do
|
2015-08-15 07:39:43 +03:00
|
|
|
devise_for :users, controllers: {registrations: 'registrations', confirmations: 'confirmations'}
|
2015-08-15 02:48:49 +03:00
|
|
|
|
2015-08-15 06:15:53 +03:00
|
|
|
scope module: :public do
|
2015-08-15 06:00:07 +03:00
|
|
|
root to: 'home#index'
|
2015-08-15 02:48:49 +03:00
|
|
|
resource :personal_profile, path: 'profile'
|
2015-10-19 00:47:39 +03:00
|
|
|
resources :events do
|
2017-10-22 22:38:48 +03:00
|
|
|
resources :feedbacks, controller: 'event_feedbacks', only: [:new, :create]
|
2015-10-19 00:47:39 +03:00
|
|
|
member do
|
|
|
|
get :confirm
|
|
|
|
end
|
|
|
|
end
|
2015-10-21 23:13:39 +03:00
|
|
|
resources :volunteers
|
2015-10-21 23:20:04 +03:00
|
|
|
resources :volunteer_teams, only: [:index]
|
2015-08-15 02:48:49 +03:00
|
|
|
end
|
2015-07-19 16:44:42 +03:00
|
|
|
|
2015-10-05 15:24:37 +03:00
|
|
|
namespace :api do
|
|
|
|
resources :conferences, only: [] do
|
2016-08-27 17:11:20 +03:00
|
|
|
resources :events, only: :index do
|
2016-09-26 16:43:14 +03:00
|
|
|
collection do
|
|
|
|
get :halfnarp_friendly
|
|
|
|
end
|
2016-08-27 17:11:20 +03:00
|
|
|
end
|
|
|
|
resources :speakers, only: :index
|
2015-10-08 02:34:19 +03:00
|
|
|
resources :tracks, only: :index
|
|
|
|
resources :event_types, only: :index
|
|
|
|
resources :halls, only: :index
|
|
|
|
resources :slots, only: :index
|
2016-10-09 07:17:34 +03:00
|
|
|
resources :volunteers
|
2015-10-05 15:24:37 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-09-17 14:23:36 +03:00
|
|
|
namespace :management do
|
2016-10-07 04:42:01 +03:00
|
|
|
root to: 'conferences#index'
|
2015-05-30 17:07:57 +03:00
|
|
|
|
2015-07-19 11:44:44 +03:00
|
|
|
resources :conferences do
|
2016-10-11 01:52:19 +03:00
|
|
|
member do
|
|
|
|
patch :update_vote_data
|
|
|
|
get :vote_results
|
|
|
|
end
|
|
|
|
|
2016-10-13 10:39:45 +03:00
|
|
|
resources :events do
|
|
|
|
member do
|
|
|
|
get :conflicts
|
|
|
|
end
|
|
|
|
end
|
2015-06-09 21:50:23 +03:00
|
|
|
resources :volunteers
|
2015-07-19 12:01:36 +03:00
|
|
|
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
|