2014-07-28 12:34:18 +03:00
|
|
|
Rails.application.routes.draw do
|
2015-07-20 02:08:20 +03:00
|
|
|
mount OpenFest::Engine, at: '/', constraints: {subdomain: 'cfp'}, conference_id: 1
|
2015-07-19 16:44:42 +03:00
|
|
|
|
|
|
|
devise_for :users, path: 'management'
|
2014-08-31 14:57:34 +03:00
|
|
|
|
2014-09-17 14:23:36 +03:00
|
|
|
namespace :management do
|
2015-05-30 17:07:57 +03:00
|
|
|
root to: 'home#index'
|
|
|
|
|
2015-07-19 11:44:44 +03:00
|
|
|
resources :conferences do
|
2015-06-09 21:50:23 +03:00
|
|
|
resources :events
|
|
|
|
resources :volunteers
|
2015-07-19 12:01:36 +03:00
|
|
|
resources :propositions
|
2015-06-09 21:50:23 +03:00
|
|
|
resources :sponsorship_offers
|
|
|
|
resource :call_for_participation, only: [:create, :destroy]
|
|
|
|
|
2015-07-28 15:43:19 +03:00
|
|
|
resources :personal_profiles do
|
2015-06-09 21:50:23 +03:00
|
|
|
member do
|
|
|
|
put :toggle_admin
|
|
|
|
end
|
2015-05-30 16:34:49 +03:00
|
|
|
end
|
|
|
|
end
|
2014-09-17 12:43:17 +03:00
|
|
|
end
|
2014-07-28 12:34:18 +03:00
|
|
|
end
|