univ-pau-ics/config/routes.json

50 lines
693 B
JSON

{
"methods": [ "GET", "POST" ],
"routes": {
"/": {
"methods": ["GET"],
"controller": "page:home",
"arguments": {}
},
"/ics/{diplome_id}{x}": {
"methods": ["GET"],
"controller": "ics:download",
"arguments": {
"diplome_id": "T\\d+",
"x": "\\.ics"
}
},
"/info/{diplome_id}": {
"methods": ["GET"],
"controller": "ics:info",
"arguments": {
"diplome_id": "T\\d+"
}
},
"/correct/{diplome_id}": {
"methods": ["POST"],
"controller": "ics:correct",
"arguments": {
"diplome_id": "T\\d+"
}
},
"/{any}": {
"methods": ["GET"],
"controller": "redirect:homepage",
"arguments": {
"any": ".+"
}
}
}
}