/
routes.rb
121 lines (100 loc) · 2.43 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
class Subdomain
def initialize
end
def matches?(request)
if request.subdomain.present? && request.subdomain != 'www'
true
else
false
end
end
end
Confman::Application.routes.draw do
mount RailsAdmin::Engine => '/deck', as: 'rails_admin'
resources :topics
resources :speakers
resources :speeches
resources :notifications, only: [:index] do
collection do
get :read_all
end
end
get "invitations/accept"
get '/dashboard', to: 'home#dashboard'
constraints Subdomain.new do
#scope path: "/" do
resource :conference, path: "/" do
member do
get 'apply'
post 'apply' => "conferences#save_apply"
end
end
#end
namespace :admin do
scope path: "/" do
resource :conference, path: "/", except: [:new, :create] do
member do
get 'speech_types'
get 'manage'
get 'basic_information'
get 'address'
get 'contact_information'
get 'site_settings'
get 'search_users'
end
end
end
resources :roles
resources :addresses
resources :sponsors
resources :rooms
resources :slots
resources :email_templates
resources :speeches do
collection do
get "bulk_mail"
post "send_bulk_mail"
get "export"
end
member do
post 'comment'
get 'upvote'
get 'downvote'
get 'accept'
get 'reject'
get 'send_accept_mail'
get 'send_reject_mail'
end
end
resource :schedule, :controller => 'schedule' do
member do
get 'speech_list'
end
end
end
end
resource :conferences do
collection do
get 'check_slug'
get 'reset_wizard'
put 'sync_wizard'
end
end
resources :organizations do
member do
post 'invite'
end
end
get "invitations/accept", as: :accept_invitation
get "home/index"
devise_for :users, :controllers => { omniauth_callbacks: 'omniauth_callbacks' }
resources :users
authenticated :user do
root :to => "home#dashboard", as: :authenticated_root
end
root :to => 'home#index'
post "/quick_signup" => 'home#quick_signup'
get "/quick_social_signup" => 'home#quick_social_signup'
get "settings", to: "settings#index"
post "settings", to: "settings#update", :as => "update_settings"
end