-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathroutes.rb
More file actions
128 lines (115 loc) · 3.76 KB
/
routes.rb
File metadata and controls
128 lines (115 loc) · 3.76 KB
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
122
123
124
125
126
127
128
Rails.application.routes.draw do
# temporary direct routes to images for migration audit
resources :attachments, only: [ :show ]
resources :media_files, only: [ :show ]
namespace :assets do
resources :primary_assets, only: [ :show ]
resources :gallery_assets, only: [ :show ]
resources :rich_texts, only: [ :show ]
end
namespace :images do
resources :primary_images, only: [ :show ]
resources :gallery_images, only: [ :show ]
resources :rich_texts, only: [ :show ]
end
resources :images, only: [ :show ]
# mount Ckeditor::Engine, at: '/admin/ckeditor', as: 'ckeditor'
apipie
devise_for :users,
controllers: { registrations: "registrations",
passwords: "passwords" }
get "users/change_password", to: "users#change_password", as: "change_password"
post "users/update_password", to: "users#update_password", as: "update_password"
post "workshop_logs/validate_new", to: "workshop_logs#validate_new"
get "contact_us", to: "contact_us#index"
post "contact_us", to: "contact_us#create"
get "dashboard/admin", to: "dashboard#admin"
get "dashboard/recent_activities", to: "dashboard#recent_activities"
get "image_migration_audit", to: "image_migration_audit#index"
get "taggings", to: "taggings#index", as: "taggings"
get "taggings/matrix", to: "taggings#matrix", as: "taggings_matrix"
get "tags", to: "tags#index", as: "tags"
get "tags/sectors", to: "tags#sectors", as: "tags_sectors"
get "tags/categories", to: "tags#categories", as: "tags_categories"
namespace :admin do
get "analytics", to: "analytics#index"
post "analytics/print", to: "analytics#print"
end
resources :banners
resources :bookmarks do
post :search
collection do
get :tally
get :personal
end
end
resources :categories
resources :community_news
resources :event_registrations
resources :events do
resource :registrations, only: %i[create destroy], module: :events, as: :registrant_registration
end
resources :facilitators
resources :faqs
resources :notifications, only: [ :index, :show ]
resources :organizations
resources :projects
resources :project_statuses
resources :project_users
resources :quotes
resources :monthly_reports
get "reports/:id/edit_story", to: "reports#edit_story", as: "reports_edit_story"
put "reports/update_story/:id", to: "reports#update_story", as: "reports_update_story"
post "reports/share_story", to: "reports#create_story", as: "create_story"
get "reports/share_story", to: "reports#share_story"
get "reports/monthly", to: "monthly_reports#monthly"
get "reports/monthly_select_type", to: "monthly_reports#monthly_select_type"
get "monthly_reports", to: "monthly_reports#monthly"
get "reports/annual", to: "reports#annual"
resources :reports
resources :resources do
get :download
member do
get :rhino_text
end
collection do
post :search
end
end
resources :sectors
resources :story_ideas
resources :stories
resources :tutorials
resources :users do
member do
get :generate_facilitator
end
end
resources :user_forms
resources :windows_types
resources :workshop_ideas
resources :workshop_logs
resources :workshop_log_creation_wizard
resources :workshop_variations
resources :workshops do
collection do
post :search
end
end
namespace :api do
namespace :v1 do
resources :authentications, only: [ :create ]
resources :quotes
resources :bookmarks
end
end
authenticated :user do
root to: "dashboard#index", as: :authenticated_root
end
# Wrap Devise routes in a scope for unauthenticated users
devise_scope :user do
unauthenticated do
root to: "devise/sessions#new", as: :unauthenticated_root
end
end
end