BikeBikeBike/config/routes.rb

79 lines
3.1 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-07-05 10:27:49 -06:00
#resources :events
#resources :event_types
#resources :workshop_requested_resources
#resources :workshop_facilitators
#resources :registration_form_fields
2014-03-15 13:40:38 -06:00
2014-07-06 19:02:23 -06:00
resources :conference_types, :param => :type, :path => '/conferences', :as => :conference, :except => :index do
2014-07-05 10:27:49 -06:00
resources :conferences, :param => :slug, :path => '/' do
2014-07-13 17:23:28 -06:00
#get :hosts
#get :registration
#get :registration
#resources :workshops, :param => 'slug'
#get :register, :param => 'step'
2014-07-13 21:27:59 -06:00
#post 'register/next' => 'conferences#register_submit'
# get 'register/workshop-test/' => 'conferences#workshop_test'
2014-07-18 20:35:15 -06:00
match 'register(/:step)' => 'conferences#register', via: [:get, :post]
2014-07-24 00:16:33 -06:00
get 'register/confirm/:confirmation_token' => 'conferences#register_confirm'
match 'register/pay-registration/:confirmation_token' => 'conferences#register_pay_registration', via: [:get, :post]
2014-07-24 21:12:39 -06:00
get 'register/paypal-confirm/:confirmation_token' => 'conferences#register_paypal_confirm'
get 'register/paypal-cancel/:confirmation_token' => 'conferences#register_paypal_cancel'
2014-07-27 23:14:54 -06:00
get 'registrations' => 'conferences#registrations'
2014-07-13 17:23:28 -06:00
#patch 'register/step/:step' => 'conferences#register_step'
2014-07-05 10:27:49 -06:00
#resources :registrations, :path => 'registration' do
# get :form, on: :collection
#end
2014-07-13 17:23:28 -06:00
#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'
#post 'registration/form/reorder' => 'conferences#reorder', as: 'registration_reorder'
2014-07-05 10:27:49 -06:00
end
2014-03-09 14:43:33 -06:00
end
2014-07-05 10:27:49 -06:00
resources :conferences, :only => :index
2014-03-09 14:43:33 -06:00
resources :organizations, :param => 'slug' do
get :members
get :identity
2014-06-02 18:45:26 -06:00
get :json
2014-03-09 14:43:33 -06:00
post :nonmembers
end
resources :users
2014-03-09 14:56:24 -06:00
resources :user_sessions
2014-03-09 14:43:33 -06:00
2014-07-05 10:27:49 -06:00
#resources :workshop_streams
#resources :workshop_resources
#resources :workshop_presentation_styles
2014-03-09 14:43:33 -06:00
2014-07-05 10:27:49 -06:00
#resources :locations
2014-03-09 14:43:33 -06:00
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
2014-07-13 11:08:01 -06:00
get 'robots.txt' => 'pages#robots'
get 'resources' => 'pages#resources'
2014-03-09 14:43:33 -06:00
root 'pages#home'
2013-04-19 19:14:51 +02:00
end