Skip to content
Newer
Older
100644 296 lines (263 sloc) 7 KB
13569ee Add language chooser to MarkUs.
Severin Gehwolf authored
1 # Required for filtering locale prefixed requests
2 require 'routing_filter'
3
970d670 @benjaminvialle Fix: Routes with namespaces
benjaminvialle authored
4 Markus::Application.routes.draw do
980c345 @benjaminvialle ActionController::Routing::Routes is deprecated. Instead, use Rails.a…
benjaminvialle authored
5 filter :locale
6
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
7 # Install the default routes as the lowest priority.
980c345 @benjaminvialle ActionController::Routing::Routes is deprecated. Instead, use Rails.a…
benjaminvialle authored
8 root :controller => "main", :action => "login"
69cd17e @NelleV Section controller is now restful
NelleV authored
9 # API routes
338284d Closes #549
Egor Philippov authored
10 namespace :api, :defaults => { :format => 'text' } do
11 resources :test_results, :except => [:new, :edit]
12 resources :submission_downloads, :except => [:new, :edit]
13 resources :users, :except => [:new, :edit]
22a0b20 @NelleV Routings
NelleV authored
14 resources :main_api
38c9571 @mikeconley Merging in changes from 0.6
mikeconley authored
15 end
778b6cd Render 404 page for non-MarkUs handled URLs. See review 578.
Severin Gehwolf authored
16
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
17 resources :admins do
cb948d1 @NelleV Fix some of the routes
NelleV authored
18 collection do
afa92b3 @NelleV Populate on students, admins, tas now works \o/
NelleV authored
19 post 'populate'
cb948d1 @NelleV Fix some of the routes
NelleV authored
20 end
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
21 end
22
69cd17e @NelleV Section controller is now restful
NelleV authored
23 resources :assignments do
910d30f @NelleV FIXed a few tests and routes
NelleV authored
24
cb948d1 @NelleV Fix some of the routes
NelleV authored
25 collection do
26 get 'download_csv_grades_report'
27 get 'update_group_properties_on_persist'
e204061 @NelleV routings
NelleV authored
28 get 'delete_rejected'
29 post 'update_collected_submissions'
cb948d1 @NelleV Fix some of the routes
NelleV authored
30 end
910d30f @NelleV FIXed a few tests and routes
NelleV authored
31
69cd17e @NelleV Section controller is now restful
NelleV authored
32 member do
33 get 'refresh_graph'
910d30f @NelleV FIXed a few tests and routes
NelleV authored
34 get 'student_interface'
cb948d1 @NelleV Fix some of the routes
NelleV authored
35 get 'update_group_properties_on_persist'
0a64ec9 Fix student interface.
Severin Gehwolf authored
36 post 'invite_member'
910d30f @NelleV FIXed a few tests and routes
NelleV authored
37 get 'creategroup'
f54289c @NelleV Fixed more routes
NelleV authored
38 get 'join_group'
39 get 'deletegroup'
40 get 'decline_invitation'
0a64ec9 Fix student interface.
Severin Gehwolf authored
41 post 'disinvite_member'
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
42 end
cb948d1 @NelleV Fix some of the routes
NelleV authored
43
286427f @NelleV FIXed a bit more routings
NelleV authored
44 resources :rubrics do
8062fc8 @NelleV closes #534 - The form to edit a rubric is now displayed properly
NelleV authored
45 member do
e79c0c7 @hansonywu Fix to button_to in rubrics view delete button
hansonywu authored
46 delete 'destroy'
8062fc8 @NelleV closes #534 - The form to edit a rubric is now displayed properly
NelleV authored
47 get 'move_criterion'
48 end
49
286427f @NelleV FIXed a bit more routings
NelleV authored
50 collection do
98573ea Close #607
Egor Philippov authored
51 post 'update_positions'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
52 post 'csv_upload'
53 post 'yml_upload'
286427f @NelleV FIXed a bit more routings
NelleV authored
54 get 'download_csv'
55 get 'download_yml'
56 end
57 end
f2fb4da @NelleV FIX routes and tests for rubrics_controller
NelleV authored
58
1503064 @NelleV More routes
NelleV authored
59 resources :flexible_criteria do
60 collection do
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
61 post 'upload'
f54289c @NelleV Fixed more routes
NelleV authored
62 get 'update_positions'
63 get 'move_criterion'
64 get 'download'
1503064 @NelleV More routes
NelleV authored
65 end
66 end
67
21b97e2 @NelleV Renamed test_framework in automated_tests
NelleV authored
68 resources :automated_tests do
6a4f904 @NelleV FIXed some of the tests in submissions_controller
NelleV authored
69 collection do
70 get 'manage'
ff49314 Patched files for tests (Patch from Benjamin_V
Bertrand authored
71 post 'update' # because of collection
1503064 @NelleV More routes
NelleV authored
72 post 'update_positions'
73 get 'update_positions'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
74 post 'upload'
1503064 @NelleV More routes
NelleV authored
75 get 'download'
76 get 'move_criterion'
6a4f904 @NelleV FIXed some of the tests in submissions_controller
NelleV authored
77 end
78 end
910d30f @NelleV FIXed a few tests and routes
NelleV authored
79
80 resources :groups do
3105a41 @etraikov Fixing notes button on groups page and adding notes_dialog_script
etraikov authored
81
82 member do
83 post 'rename_group'
84 get 'rename_group_dialog'
85 end
86
910d30f @NelleV FIXed a few tests and routes
NelleV authored
87 collection do
9419f93 @NelleV FIX more routes
NelleV authored
88 post 'populate'
89 post 'populate_students'
0332c52 @etraikov Fixing broken groups_controller functional test cases
etraikov authored
90 get 'add_group'
43e8a9c @NelleV More routing fixes !
NelleV authored
91 get 'use_another_assignment_groups'
2a7ecf1 @NelleV FIXed groups_controller routings
NelleV authored
92 get 'manage'
a483a74 @Nifter Fixes #583. Moved modal window code into index.html.erb from external…
Nifter authored
93 post 'csv_upload'
2a7ecf1 @NelleV FIXed groups_controller routings
NelleV authored
94 get 'add_csv_group'
95 get 'download_grouplist'
96 get 'create_groups_when_students_work_alone'
97 get 'valid_grouping'
98 get 'invalid_grouping'
99 get 'global_actions'
8d333d2 @etraikov Fixing broken groups_controller functional tests
etraikov authored
100 get 'rename_group'
d4a8b1a @etraikov Fixing table entry buttons for groups
etraikov authored
101 delete 'remove_group'
0332c52 @etraikov Fixing broken groups_controller functional test cases
etraikov authored
102 post 'add_group'
2a7ecf1 @NelleV FIXed groups_controller routings
NelleV authored
103 post 'global_actions'
910d30f @NelleV FIXed a few tests and routes
NelleV authored
104 end
105 end
106
107 resources :submissions do
108 collection do
109 get 'file_manager'
110 get 'browse'
9419f93 @NelleV FIX more routes
NelleV authored
111 post 'populate_file_manager'
43e8a9c @NelleV More routing fixes !
NelleV authored
112 get 'collect_all_submissions'
113 get 'download_simple_csv_report'
114 get 'download_detailed_csv_report'
115 get 'download_svn_export_list'
116 get 'download_svn_export_commands'
117 get 'download_svn_repo_list'
118 get 'collect_ta_submissions'
119 get 'update_submissions'
9419f93 @NelleV FIX more routes
NelleV authored
120 post 'populate_repo_browser'
34487ed Fix updating of converted PDFs count.
Severin Gehwolf authored
121 post 'update_converted_pdfs'
6a4f904 @NelleV FIXed some of the tests in submissions_controller
NelleV authored
122 get 'updated_files'
f54289c @NelleV Fixed more routes
NelleV authored
123 get 'replace_files'
124 get 'delete_files'
125 post 'update_files'
0a64ec9 Fix student interface.
Severin Gehwolf authored
126 post 'server_time'
127 get 'download'
43e8a9c @NelleV More routing fixes !
NelleV authored
128 end
129
130 member do
9419f93 @NelleV FIX more routes
NelleV authored
131 get 'collect_and_begin_grading'
ef0e375 @daneshd Fix #441,#500 - Collecting submission now works.
daneshd authored
132 post 'manually_collect_and_begin_grading'
9419f93 @NelleV FIX more routes
NelleV authored
133 get 'repo_browser'
910d30f @NelleV FIXed a few tests and routes
NelleV authored
134 end
135
9419f93 @NelleV FIX more routes
NelleV authored
136 resources :results do
137 collection do
69d54ef Closes #690
Egor Philippov authored
138 post 'update_mark'
139 post 'expand_criteria'
9419f93 @NelleV FIX more routes
NelleV authored
140 end
141
142 member do
1503064 @NelleV More routes
NelleV authored
143 get 'add_extra_marks'
f54289c @NelleV Fixed more routes
NelleV authored
144 get 'add_extra_mark'
9419f93 @NelleV FIX more routes
NelleV authored
145 get 'download'
69d54ef Closes #690
Egor Philippov authored
146 post 'download'
1503064 @NelleV More routes
NelleV authored
147 get 'cancel_remark_request'
148 get 'codeviewer'
481f782 Closes #637
Egor Philippov authored
149 post 'codeviewer'
69d54ef Closes #690
Egor Philippov authored
150 post 'collapse_criteria'
151 post 'add_extra_mark'
9419f93 @NelleV FIX more routes
NelleV authored
152 get 'next_grouping'
69d54ef Closes #690
Egor Philippov authored
153 post 'remove_extra_mark'
154 post 'expand_unmarked_criteria'
1503064 @NelleV More routes
NelleV authored
155 get 'set_released_to_students'
69d54ef Closes #690
Egor Philippov authored
156 post 'update_overall_comment'
157 post 'update_overall_remark_comment'
158 post 'update_marking_state'
f54289c @NelleV Fixed more routes
NelleV authored
159 get 'update_remark_request'
1503064 @NelleV More routes
NelleV authored
160 get 'render_test_result'
161 get 'update_positions'
162 get 'update_mark'
163 get 'expand_criteria'
164 get 'view_marks'
165 end
166 end
910d30f @NelleV FIXed a few tests and routes
NelleV authored
167 end
168
43e8a9c @NelleV More routing fixes !
NelleV authored
169 resources :graders do
170 collection do
6fff29b @NelleV FIX some of the routings
NelleV authored
171 get 'add_grader_to_grouping'
01368f7 @Nifter Moved view code into the modal windows placeholders in the Graders view.
Nifter authored
172 post 'csv_upload_grader_groups_mapping'
865ce93 @NelleV FIX graders routings
NelleV authored
173 post 'csv_upload_grader_criteria_mapping'
db147c8 @Nifter Fixed improper whitespace formatting in routes.rb
Nifter authored
174 get 'download_grader_groupings_mapping'
175 get 'download_grader_criteria_mapping'
6fff29b @NelleV FIX some of the routings
NelleV authored
176 get 'download_dialog'
177 get 'download_grouplist'
178 get 'grader_criteria_dialog'
179 get 'global_actions'
180 get 'groups_coverage_dialog'
9419f93 @NelleV FIX more routes
NelleV authored
181 post 'populate_graders'
182 post 'populate'
183 post 'populate_criteria'
0136c52 @hansonywu More fixes with link_to_remote. Fix routing issue for Assign Graders …
hansonywu authored
184 post 'set_assign_criteria'
6fff29b @NelleV FIX some of the routings
NelleV authored
185 get 'random_assign'
186 get 'upload_dialog'
187 get 'unassign'
865ce93 @NelleV FIX graders routings
NelleV authored
188 post 'global_actions'
43e8a9c @NelleV More routing fixes !
NelleV authored
189 end
190 end
69cd17e @NelleV Section controller is now restful
NelleV authored
191
43e8a9c @NelleV More routing fixes !
NelleV authored
192 resources :annotation_categories do
33fd737 @NelleV closes #437 - now display the form to edit an annotation category
NelleV authored
193 member do
43e8a9c @NelleV More routing fixes !
NelleV authored
194 get 'get_annotations'
3d25a49 @rvlaicu Fixed the route to use the delete verb
rvlaicu authored
195 delete 'delete_annotation_category'
0db29c3 @rvlaicu Fixed delete button for single annotation texts
rvlaicu authored
196 delete 'delete_annotation_text'
4c6db05 @rvlaicu reimplemented add_annotation with js
rvlaicu authored
197 get 'add_annotation_text'
a52a6df @rvlaicu Trying to fix the annotation edit functionality
rvlaicu authored
198 post 'add_annotation_text'
6563859 @rvlaicu Edit now properly works for annotation texts
rvlaicu authored
199 put 'update_annotation'
33fd737 @NelleV closes #437 - now display the form to edit an annotation category
NelleV authored
200 end
201
202 collection do
43e8a9c @NelleV More routing fixes !
NelleV authored
203 get 'add_annotation_category'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
204 post 'csv_upload'
43e8a9c @NelleV More routing fixes !
NelleV authored
205 get 'delete_annotation_category'
206 get 'download'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
207 post 'yml_upload'
b157b9e Closses #437
Egor Philippov authored
208 post 'add_annotation_category'
43e8a9c @NelleV More routing fixes !
NelleV authored
209 post 'update_annotation_category'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
210 get 'add_annotation_text'
211 post 'delete_annotation_text'
212 post 'update_annotation'
43e8a9c @NelleV More routing fixes !
NelleV authored
213 end
214 end
215 end
69cd17e @NelleV Section controller is now restful
NelleV authored
216
217 resources :grade_entry_forms do
cb948d1 @NelleV Fix some of the routes
NelleV authored
218 collection do
fe37190 Close #629
Egor Philippov authored
219 get 'student_interface'
cb948d1 @NelleV Fix some of the routes
NelleV authored
220 end
910d30f @NelleV FIXed a few tests and routes
NelleV authored
221
69cd17e @NelleV Section controller is now restful
NelleV authored
222 member do
910d30f @NelleV FIXed a few tests and routes
NelleV authored
223 get 'grades'
224 get 'g_table_paginate'
225 get 'csv_download'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
226 post 'csv_upload'
cb948d1 @NelleV Fix some of the routes
NelleV authored
227 post 'update_grade'
228 post 'update_grade_entry_students'
fe37190 Close #629
Egor Philippov authored
229 get 'student_interface'
69cd17e @NelleV Section controller is now restful
NelleV authored
230 end
231 end
232
a111c9d @NelleV Note controller almost works completely
NelleV authored
233 resources :notes do
3105a41 @etraikov Fixing notes button on groups page and adding notes_dialog_script
etraikov authored
234 member do
235 post 'add_note'
236 end
237
cb948d1 @NelleV Fix some of the routes
NelleV authored
238 collection do
a111c9d @NelleV Note controller almost works completely
NelleV authored
239 post 'noteable_object_selector'
240 get 'new_update_groupings'
241 post 'new_update_groupings'
cb948d1 @NelleV Fix some of the routes
NelleV authored
242 end
43e8a9c @NelleV More routing fixes !
NelleV authored
243
cb948d1 @NelleV Fix some of the routes
NelleV authored
244 member do
245 get 'student_interface'
afa92b3 @NelleV Populate on students, admins, tas now works \o/
NelleV authored
246 get 'notes_dialog'
cb948d1 @NelleV Fix some of the routes
NelleV authored
247 post 'grades'
248 end
249 end
69cd17e @NelleV Section controller is now restful
NelleV authored
250
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
251 resources :sections
69cd17e @NelleV Section controller is now restful
NelleV authored
252
f54289c @NelleV Fixed more routes
NelleV authored
253 resources :annotations do
254 collection do
255 post 'add_existing_annotation'
256 post 'update_annotation'
257 post 'update_comment'
258 end
259 end
260
69cd17e @NelleV Section controller is now restful
NelleV authored
261 resources :students do
cb948d1 @NelleV Fix some of the routes
NelleV authored
262 collection do
afa92b3 @NelleV Populate on students, admins, tas now works \o/
NelleV authored
263 post 'populate'
cb948d1 @NelleV Fix some of the routes
NelleV authored
264 get 'manage'
265 get 'download_student_list'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
266 post 'upload_student_list'
cb948d1 @NelleV Fix some of the routes
NelleV authored
267 end
69cd17e @NelleV Section controller is now restful
NelleV authored
268 end
269
43e8a9c @NelleV More routing fixes !
NelleV authored
270 resources :tas do
cb948d1 @NelleV Fix some of the routes
NelleV authored
271 collection do
afa92b3 @NelleV Populate on students, admins, tas now works \o/
NelleV authored
272 post 'populate'
97b0650 @Nifter Fixes #284 and #426. Adds support for multiple encodings in file uplo…
Nifter authored
273 post 'upload_ta_list'
cb948d1 @NelleV Fix some of the routes
NelleV authored
274 get 'download_ta_list'
275 end
276 end
277
0da06ea @NelleV FIX added routes for main controller
NelleV authored
278 resources :main do
279 collection do
280 get 'logout'
281 get 'about'
5e43bbf @tobioboye Closes issue #468. Role switch issue fix.
tobioboye authored
282 post 'login_as'
283 get 'role_switch'
0da06ea @NelleV FIX added routes for main controller
NelleV authored
284 get 'clear_role_switch_session'
a8141b8 Closes #499. Resetting api key funtional again.
Severin Gehwolf authored
285 post 'reset_api_key'
0da06ea @NelleV FIX added routes for main controller
NelleV authored
286 end
287 end
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
288
69cd17e @NelleV Section controller is now restful
NelleV authored
289 match 'main', :controller => 'main', :action => 'index'
290 match 'main/about', :controller => 'main', :action => 'about'
291 match 'main/logout', :controller => 'main', :action => 'logout'
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
292
980c345 @benjaminvialle ActionController::Routing::Routes is deprecated. Instead, use Rails.a…
benjaminvialle authored
293 # Return a 404 when no route is match
970d670 @benjaminvialle Fix: Routes with namespaces
benjaminvialle authored
294 match '*path', :controller => 'main', :action => 'page_not_found'
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
295 end
Something went wrong with that request. Please try again.