2013-01-07 09:04:09 +01:00
|
|
|
Osem::Application.routes.draw do
|
|
|
|
|
|
|
|
|
|
devise_for :users, :controllers => { :registrations => :registrations }, :path => 'accounts'
|
|
|
|
|
|
|
|
|
|
namespace :admin do
|
|
|
|
|
resources :users
|
|
|
|
|
resources :people
|
|
|
|
|
resources :conference do
|
2013-01-07 16:45:48 +01:00
|
|
|
get "/schedule" => "schedule#show"
|
|
|
|
|
put "/schedule" => "schedule#update"
|
2013-07-12 12:30:31 +03:00
|
|
|
get "/stats" => "stats#index"
|
2013-01-07 09:04:09 +01:00
|
|
|
get "/registrations" => "registrations#show"
|
2013-07-12 17:40:27 +03:00
|
|
|
get "/registrations/new" => "registrations#new"
|
|
|
|
|
put "/registrations/new" => "registrations#create"
|
2013-07-12 11:43:31 +03:00
|
|
|
get "/registrations/edit" => "registrations#edit"
|
|
|
|
|
put "/registrations/edit" => "registrations#update"
|
2013-07-12 10:54:59 +03:00
|
|
|
delete "/registrations" => "registrations#delete"
|
2013-07-12 11:43:31 +03:00
|
|
|
put "/registrations/change_field" => "registrations#change_field"
|
2013-01-14 08:49:49 +01:00
|
|
|
get "/emailsettings" => "emails#show", :as => "email_settings"
|
2014-04-23 15:45:55 +02:00
|
|
|
put "/emailsettings" => "emails#update"
|
|
|
|
|
get "/supporter_levels" => "supporter_levels#show"
|
|
|
|
|
put "/supporter_levels" => "supporter_levels#update"
|
2013-01-07 09:04:09 +01:00
|
|
|
get "/venue" => "venue#show", :as => "venue_info"
|
|
|
|
|
put "/venue" => "venue#update", :as => "venue_update"
|
2014-04-23 15:45:55 +02:00
|
|
|
get "/social_events" => "social_events#show", :as => "social_events"
|
|
|
|
|
put "/social_events" => "social_events#update"
|
2013-01-07 09:04:09 +01:00
|
|
|
get "/tracks" => "tracks#show", :as => "tracks_list"
|
|
|
|
|
put "/tracks" => "tracks#update", :as => "tracks_update"
|
2013-02-02 16:43:47 +01:00
|
|
|
get "/dietary_choices" => "dietchoices#show", :as => "dietary_list"
|
|
|
|
|
put "/dietary_choices" => "dietchoices#update", :as => "dietary_update"
|
2014-01-01 11:39:59 +02:00
|
|
|
get "/volunteers_list" => "volunteers#show"
|
2014-03-04 10:30:23 +01:00
|
|
|
get "/volunteers" => "volunteers#index", :as => "volunteers_info"
|
|
|
|
|
put "/volunteers" => "volunteers#update", :as => "volunteers_update"
|
2013-01-07 09:04:09 +01:00
|
|
|
get "/cfp" => "callforpapers#show", :as => "cfp_info"
|
|
|
|
|
put "/cfp" => "callforpapers#update", :as => "cfp_update"
|
|
|
|
|
post "/cfp" => "callforpapers#create", :as => "cfp_create"
|
|
|
|
|
get "/event_types" => "eventtype#show", :as => "eventtype_list"
|
|
|
|
|
put "/event_types" => "eventtype#update", :as => "eventtype_update"
|
2014-04-28 19:58:49 +02:00
|
|
|
|
2014-04-28 19:40:07 +02:00
|
|
|
resources :difficulty_levels, :only => [ :show, :update, :index ]
|
2014-04-28 19:58:49 +02:00
|
|
|
resources :rooms, :only => [ :show, :update, :index ]
|
2014-02-09 18:05:57 +02:00
|
|
|
put "/questions/update_conference" => "questions#update_conference"
|
|
|
|
|
resources :questions
|
2013-01-07 09:04:09 +01:00
|
|
|
resources :events do
|
|
|
|
|
member do
|
|
|
|
|
post :comment
|
|
|
|
|
put :update_state
|
2013-01-11 15:00:54 +01:00
|
|
|
put :update_track
|
2013-08-16 12:46:49 +03:00
|
|
|
get :vote
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
2013-07-11 09:04:54 +02:00
|
|
|
resource :speaker, :only => [:edit, :update]
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
2013-02-03 18:12:44 +01:00
|
|
|
resources :supporters
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
resources :conference, :only => [] do
|
|
|
|
|
resources :proposal do
|
2014-04-23 15:45:55 +02:00
|
|
|
resources :event_attachment, :controller => "event_attachments"
|
2013-01-08 08:51:34 +01:00
|
|
|
put "/confirm" => "proposal#confirm"
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
2013-06-19 13:58:48 +02:00
|
|
|
resource :schedule, :only => [] do
|
|
|
|
|
get "/" => "schedule#index"
|
|
|
|
|
end
|
2013-01-07 09:04:09 +01:00
|
|
|
member do
|
2014-04-23 15:45:55 +02:00
|
|
|
get "/register" => "conference_registration#register"
|
|
|
|
|
put "/register" => "conference_registration#update"
|
|
|
|
|
delete "/register" => "conference_registration#unregister"
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
end
|
2013-07-04 14:02:50 +02:00
|
|
|
|
|
|
|
|
namespace :api, defaults: {format: 'json'} do
|
|
|
|
|
namespace :v1 do
|
2013-07-08 10:07:12 +02:00
|
|
|
resources :conferences, :only => :index do
|
2013-07-16 17:04:48 +02:00
|
|
|
resources :conferences, :only => :index
|
2013-07-08 10:07:12 +02:00
|
|
|
resources :rooms, :only => :index
|
|
|
|
|
resources :tracks, :only => :index
|
|
|
|
|
resources :speakers, :only => :index
|
|
|
|
|
resources :events, :only => :index
|
|
|
|
|
end
|
|
|
|
|
resources :rooms, :only => :index
|
|
|
|
|
resources :tracks, :only => :index
|
|
|
|
|
resources :speakers, :only => :index
|
|
|
|
|
resources :events, :only => :index
|
2013-07-04 14:02:50 +02:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-23 15:45:55 +02:00
|
|
|
get "/admin" => redirect("/admin/conference")
|
2013-01-07 09:04:09 +01:00
|
|
|
|
|
|
|
|
root :to => "home#index"
|
|
|
|
|
end
|