|
|
|
BikeBike::Application.routes.draw do
|
|
|
|
|
|
|
|
resources :events
|
|
|
|
|
|
|
|
resources :event_types
|
|
|
|
|
|
|
|
resources :workshop_requested_resources
|
|
|
|
|
|
|
|
resources :workshop_facilitators
|
|
|
|
|
|
|
|
resources :registration_form_fields
|
|
|
|
|
|
|
|
resources :conferences, :param => 'slug' do
|
|
|
|
get :hosts
|
|
|
|
get :registration
|
|
|
|
resources :workshops, :param => 'slug'
|
|
|
|
get :registration
|
|
|
|
#resources :registrations, :path => 'registration' do
|
|
|
|
# get :form, on: :collection
|
|
|
|
#end
|
|
|
|
get 'registration/form' => 'conferences#registration', :sub_action => "form", as: 'registration_form'
|
|
|
|
get 'registration/form/register' => 'conferences#registration', :sub_action => "register", as: 'registration_register'
|
|
|
|
get 'registration/form/stats' => 'conferences#registration', :sub_action => "stats", as: 'registration_stats'
|
|
|
|
post :nonhosts
|
|
|
|
post 'registration/form/add-field' => 'conferences#add_field', as: 'registration_add_field'
|
|
|
|
post 'registration/form/remove-field' => 'conferences#remove_field', as: 'registration_remove_field'
|
|
|
|
post 'registration/form/reorder' => 'conferences#reorder', as: 'registration_reorder'
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :organizations, :param => 'slug' do
|
|
|
|
get :members
|
|
|
|
get :identity
|
|
|
|
get :json
|
|
|
|
post :nonmembers
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :users
|
|
|
|
resources :user_sessions
|
|
|
|
|
|
|
|
resources :conference_types
|
|
|
|
|
|
|
|
resources :workshop_streams
|
|
|
|
resources :workshop_resources
|
|
|
|
resources :workshop_presentation_styles
|
|
|
|
|
|
|
|
resources :locations
|
|
|
|
|
|
|
|
post '/translate/' => 'pages#translate'
|
|
|
|
post '/location/territories/' => 'pages#location_territories'
|
|
|
|
|
|
|
|
get '/translations/:lang', to: 'pages#translations'
|
|
|
|
get '/translations', to: 'pages#translation_list'
|
|
|
|
|
|
|
|
get 'login' => 'user_sessions#new', :as => :login
|
|
|
|
post 'logout' => 'user_sessions#destroy', :as => :logout
|
|
|
|
get 'register' => 'users#new', :as => 'register'
|
|
|
|
|
|
|
|
post "oauth/callback" => "oauths#callback"
|
|
|
|
get "oauth/callback" => "oauths#callback"
|
|
|
|
get "oauth/:provider" => "oauths#oauth", :as => :auth_at_provider
|
|
|
|
|
|
|
|
root 'pages#home'
|
|
|
|
|
|
|
|
end
|