forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.rb
115 lines (92 loc) · 2.86 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
Bridgetroll::Application.routes.draw do
root to: "events#index"
devise_for :users, controllers: {
registrations: "devise_overrides/registrations",
omniauth_callbacks: "devise_overrides/omniauth_callbacks"
}
resources :users, only: [:index] do
resource :profile, only: [:show]
resources :events, only: [:index], controller: 'users/events'
end
resources :meetup_users, only: [:show]
resources :locations do
patch :archive, on: :member
end
resources :chapters do
resources :leaders, only: [:index, :create, :destroy], controller: 'chapters/leaders' do
get :potential, on: :collection
end
member do
get :code_of_conduct_url
end
end
resources :regions do
resources :leaders, only: [:index, :create, :destroy], controller: 'regions/leaders' do
get :potential, on: :collection
end
end
resources :organizations, only: [:index, :show] do
get :download_subscriptions
end
resources :events do
resources :organizers, only: [:index, :create, :destroy] do
get :potential, on: :collection
end
resources :checkiners, only: [:index, :create, :destroy]
resources :volunteers, only: [:index]
scope module: :events do
resources :students, only: [:index]
resources :attendees, only: [:index, :update]
resources :attendee_names, only: [:index]
resources :emails, only: [:new, :create, :show]
resource :survey, only: [:edit]
end
resources :sections, only: [:create, :update, :destroy] do
post :arrange, on: :collection
end
resources :rsvps, except: [:show, :index, :new] do
get :quick_destroy_confirm
new do
get :volunteer
get :learn
end
resources :surveys, only: [:new, :create]
end
resources :surveys, only: [:new, :index] do
get :preview, on: :collection
end
resources :event_sessions, only: [:index, :show, :destroy] do
resources :checkins, only: [:index, :create, :destroy]
end
resources :organizer_tools, only: [:index], controller: "events/organizer_tools"
controller "events/organizer_tools" do
get :send_survey_email
get :organize_sections
get :diets
get :rsvp_preview
get :close_rsvps
get :reopen_rsvps
post :send_announcement_email
end
collection do
resources :unpublished_events, only: [:index], controller: "events/unpublished_events" do
post :publish
post :flag
end
get :feed
end
member do
get :levels
end
end
resources :external_events, except: [:show]
get "/about" => "static_pages#about"
get "/admin_dashboard" => "admin_pages#admin_dashboard"
scope :admin_dashboard, controller: :admin_pages do
get :send_test_email
get :raise_exception
end
if Rails.env.development?
get "/style_guide" => "static_pages#style_guide"
end
end