Description:
merge
Commit status:
[Not Reviewed]
References:
merge algo
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r767:aac82fe8b800 - - 1 file changed: 6 inserted, 0 deleted

@@ -102,96 +102,102
102 102 end
103 103
104 104
105 105 #user admin
106 106 resources :user_admin do
107 107 collection do
108 108 match 'bulk_manage', via: [:get, :post]
109 109 get 'bulk_mail'
110 110 get 'user_stat'
111 111 get 'import'
112 112 get 'new_list'
113 113 get 'admin'
114 114 get 'active'
115 115 get 'mass_mailing'
116 116 get 'revoke_admin'
117 117 post 'grant_admin'
118 118 match 'create_from_list', via: [:get, :post]
119 119 match 'random_all_passwords', via: [:get, :post]
120 120 end
121 121 member do
122 122 get 'clear_last_ip'
123 123 end
124 124 end
125 125
126 126 resources :contest_management, only: [:index] do
127 127 collection do
128 128 get 'user_stat'
129 129 get 'clear_stat'
130 130 get 'clear_all_stat'
131 131 get 'change_contest_mode'
132 132 end
133 133 end
134 134
135 135 #get 'user_admin', to: 'user_admin#index'
136 136 #get 'user_admin/bulk_manage', to: 'user_admin#bulk_manage', as: 'bulk_manage_user_admin'
137 137 #post 'user_admin', to: 'user_admin#create'
138 138 #delete 'user_admin/:id', to: 'user_admin#destroy', as: 'user_admin_destroy'
139 139
140 140 #singular resource
141 141 #---- BEWARE ---- singular resource maps to plural controller by default, we can override by provide controller name directly
142 142 #report
143 143 resource :report, only: [], controller: 'report' do
144 144 get 'login'
145 145 get 'multiple_login'
146 146 get 'problem_hof(/:id)', action: 'problem_hof', as: 'problem_hof'
147 147 get 'current_score(/:group_id)', action: 'current_score', as: 'current_score'
148 148 get 'max_score'
149 149 post 'show_max_score'
150 + get 'problem_hof(/:id)', action: 'problem_hof', as: 'problem_hof'
151 + get 'stuck'
152 + get 'cheat_report'
153 + post 'cheat_report'
154 + get 'cheat_scruntinize'
155 + post 'cheat_scruntinize'
150 156 end
151 157 #get 'report/current_score', to: 'report#current_score', as: 'report_current_score'
152 158 #get 'report/problem_hof(/:id)', to: 'report#problem_hof', as: 'report_problem_hof'
153 159 #get "report/login"
154 160 #get 'report/max_score', to: 'report#max_score', as: 'report_max_score'
155 161 #post 'report/show_max_score', to: 'report#show_max_score', as: 'report_show_max_score'
156 162
157 163 resource :main, only: [], controller: 'main' do
158 164 get 'login'
159 165 get 'logout'
160 166 get 'list'
161 167 get 'submission(/:id)', action: 'submission', as: 'main_submission'
162 168 get 'announcements'
163 169 get 'help'
164 170 post 'submit'
165 171 end
166 172 #main
167 173 #get "main/list"
168 174 #get 'main/submission(/:id)', to: 'main#submission', as: 'main_submission'
169 175 #post 'main/submit', to: 'main#submit'
170 176 #get 'main/announcements', to: 'main#announcements'
171 177
172 178
173 179 #
174 180 get 'tasks/view/:file.:ext' => 'tasks#view'
175 181 get 'tasks/download/:id/:file.:ext' => 'tasks#download'
176 182 get 'heartbeat/:id/edit' => 'heartbeat#edit'
177 183
178 184 #grader
179 185 get 'graders/list', to: 'graders#list', as: 'grader_list'
180 186 namespace :graders do
181 187 get 'task/:id/:type', action: 'task', as: 'task'
182 188 get 'view/:id/:type', action: 'view', as: 'view'
183 189 get 'clear/:id', action: 'clear', as: 'clear'
184 190 get 'stop'
185 191 get 'stop_all'
186 192 get 'clear_all'
187 193 get 'clear_terminated'
188 194 get 'start_grading'
189 195 get 'start_exam'
190 196
191 197 end
192 198
193 199
194 200 # See how all your routes lay out with "rake routes"
195 201
196 202 # This is a legacy wild controller route that's not recommended for RESTful applications.
197 203 # Note: This route will make all actions in every controller accessible via GET requests.
You need to be logged in to leave comments. Login now