epal.routing.yml 10.5 KB
Newer Older
1 2 3 4 5 6 7 8 9
epal.user.send_verification_code:
  path: '/epal/user/sendvercode'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\CurrentUser::sendVerificationCode'
  requirements:
    _user_is_logged_in: 'TRUE'
epal.user.verify_verification_code:
10
  path: '/epal/user/verifyvercode'
11 12 13 14 15 16
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\CurrentUser::verifyVerificationCode'
  requirements:
    _user_is_logged_in: 'TRUE'
17 18 19 20 21 22 23 24
epal.user.save_profile:
  path: '/epal/user/save'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\CurrentUser::saveUserProfile'
  requirements:
    _user_is_logged_in: 'TRUE'
25
epal.user.get_data:
26
  path: '/epal/userdata'
27 28
  options:
    _auth: [ 'basic_auth' ]
29
  defaults:
30
    _controller: '\Drupal\epal\Controller\CurrentUser::getEpalUserData'
31 32
  requirements:
    _user_is_logged_in: 'TRUE'
33
epal.current_user:
Open Source Developer's avatar
Open Source Developer committed
34
  path: '/epal/curuser'
35
  options:
Open Source Developer's avatar
Open Source Developer committed
36
    _auth: [ 'basic_auth' ]
Open Source Developer's avatar
Open Source Developer committed
37
  defaults:
38
    _controller: '\Drupal\epal\Controller\CurrentUser::getLoginInfo'
Open Source Developer's avatar
Open Source Developer committed
39
  requirements:
Open Source Developer's avatar
Open Source Developer committed
40
    _user_is_logged_in: 'TRUE'
41 42 43 44 45 46 47 48
epal.applicationdetails:
  path: '/epal/application/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getApplicationDetails'
  requirements:
    _user_is_logged_in: 'TRUE'
49
epal.submitedapplications:
Open Source Developer's avatar
tranfer  
Open Source Developer committed
50
  path: '/epal/subapplic'
Open Source Developer's avatar
trans  
Open Source Developer committed
51 52 53
  options:
    _auth: [ 'basic_auth' ]
  defaults:
Open Source Developer's avatar
Open Source Developer committed
54
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getSubmittedApplications'
Open Source Developer's avatar
trans  
Open Source Developer committed
55 56
  requirements:
    _user_is_logged_in: 'TRUE'
57 58 59 60 61 62 63 64
epal.application_delete:
  path: '/epal/application/delete'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::deleteApplication'
  requirements:
    _user_is_logged_in: 'TRUE'
65
epal.studentapplication:
Open Source Developer's avatar
Open Source Developer committed
66 67 68 69 70 71 72
  path: '/epal/student/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getStudentApplications'
  requirements:
    _user_is_logged_in: 'TRUE'
73
epal.epalchosen:
Open Source Developer's avatar
Open Source Developer committed
74 75 76 77 78 79 80
  path: '/epal/epalchosen/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getEpalChosen'
  requirements:
    _user_is_logged_in: 'TRUE'
81 82
epal.application_submit:
  path: '/epal/appsubmit'
83
  options:
84 85 86 87 88
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ApplicationSubmit::appSubmit'
  requirements:
    _user_is_logged_in: 'TRUE'
89 90
epal.allocation:
  path: '/epal/distribution'
91
  options:
92
    _auth: [ 'basic_auth' ]
93 94 95
  defaults:
    _controller: '\Drupal\epal\Controller\Distribution::createDistribution'
  requirements:
96
    _user_is_logged_in: 'TRUE'
97 98 99 100 101 102 103 104
epal.allocation_second:
  path: '/epal/distribution-secondperiod'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\Distribution::locateSecondPeriodStudents'
  requirements:
    _user_is_logged_in: 'TRUE'
105
epal.confirmstudents:
Open Source Developer's avatar
trans  
Open Source Developer committed
106 107 108 109 110 111
  path: '/epal/confirmstudent'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::ConfirmStudents'
  requirements:
112
    _user_is_logged_in: 'TRUE'
113
epal.studentperschool:
Open Source Developer's avatar
Open Source Developer committed
114
  path: '/epal/studentperschool/{classId}/{sector}/{specialit}'
Open Source Developer's avatar
trans  
Open Source Developer committed
115 116 117 118 119 120
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::getStudentPerSchool'
  requirements:
    _user_is_logged_in: 'TRUE'
121
epal.savecapacity:
Open Source Developer's avatar
Open Source Developer committed
122
  path: '/epal/savecapacity/{taxi}/{tomeas}/{specialit}'
Open Source Developer's avatar
Open Source Developer committed
123 124 125 126 127
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::SaveCapacity'
  requirements:
128 129 130 131 132 133 134 135
    _user_is_logged_in: 'TRUE'
epal.ministry.log_in_go:
  path: '/ministry/login'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\MinistryLogin::loginGo'
  requirements:
136
    _user_is_logged_in: 'TRUE'
137 138 139 140 141 142 143
epal.ministry.log_out_go:
  path: '/ministry/logout'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\MinistryLogin::logoutGo'
  requirements:
144
    _user_is_logged_in: 'TRUE'
145 146 147 148 149 150 151 152
epal.ministry.report_users:
  path: '/ministry/report-users'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ReportsCreator::makeReportUsers'
  requirements:
    _user_is_logged_in: 'TRUE'
153
epal.ministry.general_report:
154
  path: '/ministry/general-report'
155 156 157
  options:
    _auth: [ 'basic_auth' ]
  defaults:
158
    _controller: '\Drupal\epal\Controller\ReportsCreator::makeGeneralReport'
159
  requirements:
160
    _user_is_logged_in: 'TRUE'
161
epal.ministry.report-completeness:
162
  path: '/ministry/report-completeness/{regionId}/{adminId}/{schId}'
163 164 165 166
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ReportsCreator::makeReportCompleteness'
167
  requirements:
168
    _user_is_logged_in: 'TRUE'
169
epal.ministry.report-all-stat:
170
  path: '/ministry/report-all-stat/{regionId}/{adminId}/{schId}/{classId}/{sectorId}/{courseId}/{finalized}'
171 172 173 174 175
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ReportsCreator::makeReportAllStat'
  requirements:
176
    _user_is_logged_in: 'TRUE'
177 178 179 180 181 182 183
epal.ministry.report-no-capacity:
  path: '/ministry/report-no-capacity/{capacityEnabled}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ReportsCreator::makeReportNoCapacity'
  requirements:
184
    _user_is_logged_in: 'TRUE'
185 186 187 188 189 190 191
epal.ministry.retrieve-registry-id:
  path: '/ministry/retrieve-registry-id'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ReportsCreator::retrieveUserRegistryNo'
  requirements:
192
    _user_is_logged_in: 'TRUE'
193
epal.ministry.massive_mail_unallocated:
194
  path: '/ministry/send-unallocated-massive-mail/{period}'
195 196 197
  options:
    _auth: [ 'basic_auth' ]
  defaults:
198
    _controller: '\Drupal\epal\Controller\InformUnlocatedStudents::sendMailToUnallocatedStudents'
199
    period: 2
200
  requirements:
201
    _user_is_logged_in: 'TRUE'
202
    period: ^[0,1,2]$
203
epal.ministry.massive_mail_unallocated_smallclass:
204
  path: '/ministry/send-unallocated-sc-massive-mail/{period}'
205 206 207 208
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\InformUnlocatedStudents::sendMailToUnallocatedStudentsSC'
209
    period: 2
210 211
  requirements:
    _user_is_logged_in: 'TRUE'
212
    period: ^[0,1,2]$
213
epal.ministry.massive_mail_located:
214
  path: '/ministry/send-located-massive-mail/{period}'
215 216 217
  options:
    _auth: [ 'basic_auth' ]
  defaults:
218
    _controller: '\Drupal\epal\Controller\InformUnlocatedStudents::sendMailToLocatedStudents'
219
    period: 2
220
  requirements:
221
    _user_is_logged_in: 'TRUE'
222
    period: ^[0,1,2]$
223 224 225 226 227 228 229
epal.ministry.retrievesettings:
  path: '/ministry/retrieve-settings'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\MinisterSettings::retrieveSettings'
  requirements:
230
    _user_is_logged_in: 'TRUE'
231
epal.ministry.storesettings:
232
  path: '/ministry/store-settings/{capacityDisabled}/{directorViewDisabled}/{applicantsLoginDisabled}/{applicantsResultsDisabled}/{secondPeriodEnabled}'
233 234 235 236 237
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\MinisterSettings::storeSettings'
  requirements:
238 239 240
    _user_is_logged_in: 'TRUE'
epal.perfectureschools:
  path: '/epal/schools-per-perf'
Open Source Developer's avatar
trans  
Open Source Developer committed
241 242 243
  options:
    _auth: [ 'basic_auth' ]
  defaults:
244
    _controller: '\Drupal\epal\Controller\DirectorView::getSchools'
Open Source Developer's avatar
trans  
Open Source Developer committed
245 246
  requirements:
    _user_is_logged_in: 'TRUE'
247
epal.coursesperschools:
Open Source Developer's avatar
Open Source Developer committed
248
  path: '/epal/coursespersch/{schoolid}'
Open Source Developer's avatar
trans  
Open Source Developer committed
249 250 251 252 253
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::getCoursesPerSchool'
  requirements:
254
    _user_is_logged_in: 'TRUE'
255
epal.critirioschosen:
Open Source Developer's avatar
trans  
Open Source Developer committed
256 257 258 259 260 261 262
  path: '/epal/critiriachosen/{studentId}/{type}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getCritiria'
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
Open Source Developer committed
263 264 265 266 267 268
epal.findcapacityperschool:
  path: '/epal/findcapacityperschool'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::FindCapacityPerSchool'
269 270
  requirements:
    _user_is_logged_in: 'TRUE'
271
epal.applicant.creationpdf:
272
  path: '/epal/pdf-application/{studentId}'
273 274 275 276
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\PdfCreator::createApplicantPDF'
Open Source Developer's avatar
Open Source Developer committed
277 278
  requirements:
    _user_is_logged_in: 'TRUE'
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
epal.svc.getdidacticyears:
  path: '/epal/get-didactic-years'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\WSConsumer::getAllDidactiYear'
  requirements:
    _user_is_logged_in: 'TRUE'
epal.svc.getstudentpromotion:
  path: '/epal/get-student-promotion/{didactic_year_id}/{lastname}/{firstname}/{father_firstname}/{mother_firstname}/{birthdate}/{registry_no}/{level_name}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\WSConsumer::getStudentEpalPromotion'
  requirements:
    _user_is_logged_in: 'TRUE'
epal.svc.getstudentcertification:
  path: '/epal/get-student-certification/{didactic_year_id}/{lastname}/{firstname}/{father_firstname}/{mother_firstname}/{birthdate}/{registry_no}/{level_name}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\WSConsumer::getStudentEpalCertification'
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
changes  
Open Source Developer committed
303 304 305 306 307 308 309 310
epal.findcoursesperschool:
  path: '/epal/findcoursesperschool'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::FindCoursesPerSchool'
  requirements:
    _user_is_logged_in: 'TRUE'
311 312 313 314 315 316 317
epal.user.send_email:
  path: '/epal/user/sendmail'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\HelpDesk::sendEmail'
  requirements:
318 319 320 321 322 323 324
    _user_is_logged_in: 'TRUE'
epal.applicant.showresults:
  path: '/epal/showresults/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getResults'
Open Source Developer's avatar
counter  
Open Source Developer committed
325 326 327 328 329 330 331 332
  requirements:
    _user_is_logged_in: 'TRUE'
epal.totalstudents:
  path: '/epal/totalstudent'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\HelpDesk::findTotalStudents'
333
  requirements:
334
    _user_is_logged_in: 'TRUE'
335 336 337 338 339 340 341 342
epal.application_delete_director:
  path: '/epal/application/deleteFromDirector'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::deleteApplicationFromDirector'
  requirements:
    _user_is_logged_in: 'TRUE'