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