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

@@ -54,146 +54,152
54 54 post 'add_problem', to: 'groups#add_problem', as: 'add_problem'
55 55 delete 'remove_problem/:problem_id', to: 'groups#remove_problem', as: 'remove_problem'
56 56 delete 'remove_all_problem', to: 'groups#remove_all_problem', as: 'remove_all_problem'
57 57 end
58 58 collection do
59 59
60 60 end
61 61 end
62 62
63 63 resources :testcases, only: [] do
64 64 member do
65 65 get 'download_input'
66 66 get 'download_sol'
67 67 end
68 68 collection do
69 69 get 'show_problem/:problem_id(/:test_num)' => 'testcases#show_problem', as: 'show_problem'
70 70 end
71 71 end
72 72
73 73 resources :grader_configuration, controller: 'configurations' do
74 74 collection do
75 75 get 'set_exam_right(/:value)', action: 'set_exam_right', as: 'set_exam_right'
76 76 end
77 77 end
78 78
79 79 resources :users do
80 80 member do
81 81 get 'toggle_activate', 'toggle_enable'
82 82 get 'stat'
83 83 end
84 84 collection do
85 85 get 'profile'
86 86 post 'chg_passwd'
87 87 end
88 88 end
89 89
90 90 resources :submissions do
91 91 member do
92 92 get 'download'
93 93 get 'compiler_msg'
94 94 get 'rejudge'
95 95 get 'source'
96 96 end
97 97 collection do
98 98 get 'prob/:problem_id', to: 'submissions#index', as: 'problem'
99 99 get 'direct_edit_problem/:problem_id(/:user_id)', to: 'submissions#direct_edit_problem', as: 'direct_edit_problem'
100 100 get 'get_latest_submission_status/:uid/:pid', to: 'submissions#get_latest_submission_status', as: 'get_latest_submission_status'
101 101 end
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.
198 204 # match ':controller(/:action(/:id))(.:format)', via: [:get, :post]
199 205 end
You need to be logged in to leave comments. Login now