forked from autolab/Autolab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.rb
executable file
·150 lines (132 loc) · 3.59 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Autolab3::Application.routes.draw do
root 'courses#index'
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }, path_prefix: 'auth'
get 'contact', to: 'home#contact'
namespace :home do
match 'developer_login', via: [ :post, :get ]
get 'error'
get 'no_user'
get 'vmlist'
end
resource :admin do
match 'emailInstructors', via: [:get, :post]
end
resources :users do
get 'admin'
end
resources :courses do
match 'report_bug', via: [ :post, :get ]
get 'userLookup'
resources :schedulers
resources :jobs, only: :index do
get 'getjob', on: :member
end
resources :announcements, except: :show
resources :attachments
resources :assessments, except: :update do
resources :assessment_user_data, only: [:edit, :update]
resources :attachments
resources :extensions, only: [:index, :create, :destroy]
resources :groups, except: :edit do
member do
post 'add'
post 'join'
post 'leave'
end
post 'import', on: :collection
end
resources :problems, except: [:index, :show] do
get 'destroyConfirm', on: :member
end
resources :submissions do
resources :annotations, only: [:create, :update, :destroy]
resources :scores, only: [:create, :show, :update]
member do
get 'destroyConfirm'
get 'download'
get 'listArchive', as: :list_archive
get 'view'
end
collection do
get 'downloadAll'
get 'missing'
end
end
member do
match 'adminAutograde', via: [:get, :post]
match 'adminScoreboard', via: [:get, :post]
match 'bulkGrade', via: [:get, :post]
post 'bulkGrade_complete'
get 'bulkExport'
get 'releaseAllGrades'
get 'releaseSectionGrades'
get 'viewFeedback'
get 'reload'
get 'statistics'
get 'withdrawAllGrades'
get 'export'
get 'attachments'
get 'extensions'
get 'submissions'
patch 'edit/*active_tab', action: :update
get 'edit/*active_tab', action: :edit
post 'handin'
get 'takeQuiz'
post 'submitQuiz'
get 'history'
get 'viewGradesheet'
get 'writeup'
get 'handout'
get 'scoreboard'
# autograde actions
post 'autograde_done'
post 'regrade'
post 'regradeBatch'
post 'regradeAll'
# SVN actions
get 'adminSVN'
post 'importSVN'
post 'setRepository'
# gradesheet ajax actions
post 'quickSetScore'
post 'quickSetScoreDetails'
get 'quickGetTotal'
get 'score_grader_info'
get 'submission_popover'
# remote calls
match 'local_submit', via: [:get, :post]
get 'log_submit'
end
collection do
get 'installAssessment'
post 'importAssessment'
post 'importAsmtFromTar'
post 'installQuiz'
end
end
resources :course_user_data do
match 'sudo', via: [:get, :post]
get 'unsudo'
get 'destroyConfirm'
resource :gradebook, only: :show do
get 'bulkRelease'
get 'csv'
get 'invalidate'
get 'statistics'
get 'student'
get 'view'
end
end
get 'manage'
get 'bulkRelease'
get 'downloadRoster'
match 'email', via: [:get, :post]
get 'moss'
post 'uploadRoster'
get 'uploadRoster'
get 'users'
get 'reload'
get 'sudo'
post 'runMoss'
end
end