Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 99 lines (77 sloc) 1.833 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
970d670 @benjaminvialle Fix: Routes with namespaces
benjaminvialle authored
10 namespace :api do
11 resources :test_results
12 resources :submission_downloads
3d78d5e @benjaminvialle Merge for MarkUs 0.10.0
benjaminvialle authored
13 resources :users
38c9571 @mikeconley Merging in changes from 0.6
mikeconley authored
14 end
778b6cd Render 404 page for non-MarkUs handled URLs. See review 578.
Severin Gehwolf authored
15
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
16 resources :admins do
17 get 'populate'
18 end
19
20 resources :annotation_categories do
21 member do
69cd17e @NelleV Section controller is now restful
NelleV authored
22 get 'get_annotations'
23 get 'add_annotation_category'
24 get 'add_annotation_text'
25 get 'csv_upload'
26 get 'delete_annotation_category'
27 get 'download'
28 get 'yml_upload'
29 post 'delete_annotation_text'
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
30 post 'update_annotation_category'
69cd17e @NelleV Section controller is now restful
NelleV authored
31 post 'update_annotation'
32 end
33 end
34
35 resources :annotations do
36 member do
37 post 'update_comment'
38 end
39 end
40
41 resources :assignments do
42 member do
43 get 'refresh_graph'
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
44 end
45 end
69cd17e @NelleV Section controller is now restful
NelleV authored
46
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
47 resources :flexible_criteria
69cd17e @NelleV Section controller is now restful
NelleV authored
48
49 resources :grade_entry_forms do
50 member do
51 post 'student_interface'
52 end
53 end
54
55 resources :graders do
56 member do
57 get 'manage'
58 end
59 end
60
61 resources :groups do
62 member do
63 get 'manage'
64 end
65 end
66
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
67 resources :note
69cd17e @NelleV Section controller is now restful
NelleV authored
68
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
69 resources :results
69cd17e @NelleV Section controller is now restful
NelleV authored
70
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
71 resources :rubric
69cd17e @NelleV Section controller is now restful
NelleV authored
72
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
73 resources :sections
69cd17e @NelleV Section controller is now restful
NelleV authored
74
75 resources :students do
76 get 'populate'
77 get 'manage'
78 get 'download_student_list'
79 end
80
81 resources :submissions do
82 member do
83 get 'browse'
84 end
85 end
86
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
87 resources :tas
88
69cd17e @NelleV Section controller is now restful
NelleV authored
89 resources :test_framework
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
90
69cd17e @NelleV Section controller is now restful
NelleV authored
91 match 'main', :controller => 'main', :action => 'index'
92 match 'main/about', :controller => 'main', :action => 'about'
93 match 'main/logout', :controller => 'main', :action => 'logout'
36f23e4 @NelleV Added all the defaults routes - fixed a few failing tests in admins c…
NelleV authored
94
980c345 @benjaminvialle ActionController::Routing::Routes is deprecated. Instead, use Rails.a…
benjaminvialle authored
95
96 # Return a 404 when no route is match
970d670 @benjaminvialle Fix: Routes with namespaces
benjaminvialle authored
97 match '*path', :controller => 'main', :action => 'page_not_found'
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
98 end
Something went wrong with that request. Please try again.