-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathroutes.rb
58 lines (51 loc) · 1.97 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
RailsgirlsLondon::Application.routes.draw do
root :to => 'home#index'
devise_for :users, skip: :registrations
get 'home' => 'home#index'
get "/404", to: "errors#not_found"
get "/london(/:slug)", to: redirect("/"), slug: /.*/
get "/code_of_conduct" => 'home#code_of_conduct'
get "/unsubscribe/:member_uuid" => "unsubscribes#new", as: :unsubscribe
post "/unsubscribe/:member_uuid" => "unsubscribes#create"
resources :invitation, only: [:show, :update ], param: :token
resources :coach_registrations, only: [:show, :update ], param: :token
resources :events, only: [:show] do
resources :registrations, only: [:new, :create]
resources :feedbacks, only: [:new, :show]
resources :coach_registrations, only: [:new, :create]
end
resources :events do
resource :feedbacks, only: [ :create ]
end
namespace :admin do
root :to => 'dashboard#index'
get '/dashboard' => 'dashboard#index', as: :dashboard
resources :events do
resources :reminders, only: [] do
post :day_before_the_event, on: :collection
end
resources :invitations, only: [ :show ], :invitable_type => 'Event', :invitable_id => 'event_id' do
post 'create', on: :collection
member do
post :resend_invite
post :send_welcome_email
end
end
resources :registrations, only: [:show, :new, :create, :edit, :update, :destroy] do
resource :attendance, only: [:create, :destroy]
end
resources :coach_registrations, only: [:show, :new, :create, :update, :destroy] do
resource :coach_registrations_attendance, only: [:update] do
post :send_welcome_email, on: :member
end
resources :suggested_matches, only: [:index, :create, :update]
end
end
resources :sponsorships, only: [:create, :destroy, :update]
resources :coachings, only: [:create, :destroy, :update]
resources :sponsors
resources :coaches
resources :members
resources :meetings
end
end