epal.routing.yml 3.27 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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:
  path: '/epal/user/verifyvercode'
  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'
Open Source Developer's avatar
trans    
Open Source Developer committed
41
submitedapplications:
Open Source Developer's avatar
tranfer    
Open Source Developer committed
42
  path: '/epal/subapplic'
Open Source Developer's avatar
trans    
Open Source Developer committed
43
44
45
  options:
    _auth: [ 'basic_auth' ]
  defaults:
Open Source Developer's avatar
Open Source Developer committed
46
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getSubmittedApplications'
Open Source Developer's avatar
trans    
Open Source Developer committed
47
48
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
Open Source Developer committed
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
studentapplication:
  path: '/epal/student/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getStudentApplications'
  requirements:
    _user_is_logged_in: 'TRUE'
epalchosen:
  path: '/epal/epalchosen/{studentId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\SubmitedApplications::getEpalChosen'
  requirements:
    _user_is_logged_in: 'TRUE'
65
66
epal.application_submit:
  path: '/epal/appsubmit'
67
  options:
68
69
70
71
72
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ApplicationSubmit::appSubmit'
  requirements:
    _user_is_logged_in: 'TRUE'
73
74
75
76
77
78
79
80
81
82
83
84
epal.demo_data:
  path: '/epal/demodata'
  defaults:
    _controller: '\Drupal\epal\Controller\CreateDemoData::createData'
  requirements:
      _access: 'TRUE'
epal.allocation:
  path: '/epal/distribution'
  defaults:
    _controller: '\Drupal\epal\Controller\Distribution::createDistribution'
  requirements:
      _access: 'TRUE'
Open Source Developer's avatar
transf    
Open Source Developer committed
85
86
87
88
89
90
91
92
sectorperschool:
  path: '/epal/sectorperSchool/{epalId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::getSectorsPerSchool'
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
trans    
Open Source Developer committed
93
94
95
96
97
98
99
100
specialityperschool:
  path: '/epal/specialityperSchool/{epalId}/{sectorId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::getSpecialPerSchool'
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
trans    
Open Source Developer committed
101
102
103
104
105
106
107
108
confirmstudents:
  path: '/epal/confirmstudent'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::ConfirmStudents'
  requirements:
    _user_is_logged_in: 'TRUE'  
Open Source Developer's avatar
trans    
Open Source Developer committed
109
110
111
112
113
114
115
116
studentperschool:
  path: '/epal/studentperSchool/{epalId}/{selectId}'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\DirectorView::getStudentPerSchool'
  requirements:
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
trans    
Open Source Developer committed
117
  
Open Source Developer's avatar
trans    
Open Source Developer committed
118