BikeBikeBike/config/routes.rb

64 lines
1.9 KiB
Ruby
Raw Normal View History

2014-03-09 14:43:33 -06:00
BikeBike::Application.routes.draw do
2013-04-19 19:14:51 +02:00
2014-03-23 13:31:08 -06:00
resources :events
2014-03-15 13:40:38 -06:00
2014-03-23 13:31:08 -06:00
resources :event_types
2014-03-15 13:40:38 -06:00
2014-03-23 13:31:08 -06:00
resources :workshop_requested_resources
2014-03-15 13:40:38 -06:00
2014-03-23 13:31:08 -06:00
resources :workshop_facilitators
2014-03-09 14:43:33 -06:00
resources :registration_form_fields
resources :conferences, :param => 'slug' do
get :hosts
get :registration
2014-03-23 13:31:08 -06:00
resources :workshops, :param => 'slug'
2014-03-09 14:43:33 -06:00
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
post :nonmembers
end
resources :users
2014-03-09 14:56:24 -06:00
resources :user_sessions
2014-03-09 14:43:33 -06:00
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'
2014-05-04 14:56:18 -06:00
get '/translations/:lang', to: 'pages#translations'
get '/translations', to: 'pages#translation_list'
2014-03-09 14:43:33 -06:00
get 'login' => 'user_sessions#new', :as => :login
post 'logout' => 'user_sessions#destroy', :as => :logout
get 'register' => 'users#new', :as => 'register'
2014-05-04 14:56:18 -06:00
post "oauth/callback" => "oauths#callback"
get "oauth/callback" => "oauths#callback"
get "oauth/:provider" => "oauths#oauth", :as => :auth_at_provider
2014-03-09 14:43:33 -06:00
root 'pages#home'
2013-04-19 19:14:51 +02:00
end