osem-fcy/config/routes.rb

100 lines
3 KiB
Ruby
Raw Normal View History

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
get "/schedule" => "schedule#show"
patch "/schedule" => "schedule#update"
2013-07-12 12:30:31 +03:00
get "/stats" => "stats#index"
2013-01-07 09:04:09 +01:00
get "/venue" => "venue#show", :as => "venue_info"
patch "/venue" => "venue#update", :as => "venue_update"
get "/dietary_choices" => "dietchoices#show", :as => "dietary_list"
patch "/dietary_choices" => "dietchoices#update", :as => "dietary_update"
get "/volunteers_list" => "volunteers#show"
get "/volunteers" => "volunteers#index", :as => "volunteers_info"
patch "/volunteers" => "volunteers#update", :as => "volunteers_update"
2014-05-15 20:30:01 +03:00
patch "/registrations/change_field" => "registrations#change_field"
resources :registrations
2014-04-28 19:58:49 +02:00
2014-04-28 21:42:09 +02:00
resources :difficulty_levels, only: [:show, :update, :index]
2014-04-28 21:42:09 +02:00
resources :rooms, only: [:show, :update, :index]
2014-04-28 21:42:09 +02:00
resources :tracks, only: [:show, :update, :index]
resources :eventtypes, only: [:show, :index] do
collection do
patch :update
end
end
2014-04-28 21:42:09 +02:00
resources :social_events, only: [:show, :update, :index]
2014-04-28 21:42:09 +02:00
resources :supporter_levels, only: [:show, :update, :index]
2014-04-28 21:42:09 +02:00
resources :emails, only: [:show, :update, :index]
resources :callforpapers, only: [:create] do
collection do
patch :update
get :show
end
end
patch "/questions/update_conference" => "questions#update_conference"
2014-02-09 18:05:57 +02:00
resources :questions
2013-01-07 09:04:09 +01:00
resources :events do
member do
post :comment
patch :update_state
patch :update_track
2013-08-16 12:46:49 +03:00
get :vote
2013-01-07 09:04:09 +01:00
end
resource :speaker, :only => [:edit, :update]
2013-01-07 09:04:09 +01:00
end
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"
patch "/confirm" => "proposal#confirm"
2013-01-07 09:04:09 +01:00
end
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"
patch "/register" => "conference_registration#update"
2014-04-23 15:45:55 +02:00
delete "/register" => "conference_registration#unregister"
2013-01-07 09:04:09 +01:00
end
end
namespace :api, defaults: {format: 'json'} do
namespace :v1 do
2013-07-08 10:07:12 +02:00
resources :conferences, :only => :index do
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
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