-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.rb
77 lines (66 loc) · 2.01 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
Rails.application.routes.draw do
get 'chatarea/index'
get 'chatrooms/index'
get 'explore/:campus' , to: 'confessions#explore' ,as: :explore
get 'clubs/:id/photos' , to: "clubs#photos" , as: :clubphotos
get 'tags/:tag' , to: 'confessions#tags' , as: :tags
devise_for :amitians, controllers: { sessions: 'amitians/sessions' }, path: '',path_names: { sign_in: 'login', sign_out: 'logout'}
root 'home#index'
resources :amitians do
member do
get :following, :followers
get :hotlisting
end
end
get 'amitians/:id/photos' , to: 'amitians#photos' , as: :photos
resources :clubs
resources :clubposts do
resources :clubscomments
member do
get 'like' , to: 'clubposts#upvote'
get 'dislike' , to: 'clubposts#downvote'
end
end
resources :clubmembers, only: [:create, :update, :destroy]
resources :events do
member do
get :follow
get :unfollow
end
end
resources :eventposts do
resources :eventcomments
member do
get 'like' , to: 'eventposts#upvote'
get 'dislike' , to: 'eventposts#downvote'
end
end
resources :about_amitians, only: [:show,:new,:create,:update,:edit]
resources :friendships, only: [:create, :update, :destroy]
resources :galleries
resources :chatrooms do
resources :messages
end
resources :confessions do
resources :confessioncomments
member do
get 'like' , to: 'confessions#upvote'
get 'dislike' , to: 'confessions#downvote'
end
end
resources :hotlists
resources :conversations , only: [:create ] do
member do
post :close
end
resources :messages, only: [:create]
end
resources :feeling , only: [:index]
resources :relationships, only: [:create, :destroy]
resources :feedbacks
get 'notifications/:id/link_through', to: 'notifications#link_through',
as: :link_through
get 'notifications', to: 'notifications#index'
post 'notifications' , to: 'notifications#create'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end