2017-09-12 16:32:01 +00:00
|
|
|
{
|
|
|
|
|
2017-09-14 17:56:24 +00:00
|
|
|
"methods": [ "GET", "POST" ],
|
2017-09-12 16:32:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
"routes": {
|
|
|
|
|
|
|
|
"/": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "page:home",
|
|
|
|
"arguments": {}
|
|
|
|
},
|
|
|
|
|
2017-09-12 17:14:20 +00:00
|
|
|
"/ics/{diplome_id}{x}": {
|
2017-09-12 16:32:01 +00:00
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "ics:download",
|
|
|
|
"arguments": {
|
2017-09-12 17:14:20 +00:00
|
|
|
"diplome_id": "T\\d+",
|
|
|
|
"x": "\\.ics"
|
2017-09-12 16:32:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-09-15 18:21:52 +00:00
|
|
|
"/location/{diplome_id}": {
|
2017-09-13 13:03:36 +00:00
|
|
|
"methods": ["GET"],
|
2017-09-15 18:21:52 +00:00
|
|
|
"controller": "ics:location",
|
2017-09-13 13:03:36 +00:00
|
|
|
"arguments": {
|
|
|
|
"diplome_id": "T\\d+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-09-15 18:21:52 +00:00
|
|
|
"/lessons/{diplome_id}": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "ics:lessons",
|
|
|
|
"arguments": {
|
|
|
|
"diplome_id": "T\\d+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/xlessons/{diplome_id}": {
|
|
|
|
"methods": ["POST"],
|
|
|
|
"controller": "ics:correct_lessons",
|
|
|
|
"arguments": {
|
|
|
|
"diplome_id": "T\\d+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/xlocation/{diplome_id}": {
|
2017-09-14 17:56:24 +00:00
|
|
|
"methods": ["POST"],
|
2017-09-15 18:21:52 +00:00
|
|
|
"controller": "ics:correct_location",
|
2017-09-14 17:56:24 +00:00
|
|
|
"arguments": {
|
|
|
|
"diplome_id": "T\\d+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-09-12 16:32:01 +00:00
|
|
|
"/{any}": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "redirect:homepage",
|
|
|
|
"arguments": {
|
|
|
|
"any": ".+"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|