2017-11-23 10:23:09 +00:00
|
|
|
{
|
|
|
|
|
2017-11-23 11:56:07 +00:00
|
|
|
"methods": [ "GET", "POST", "PUT", "DELETE", "VIEW" ],
|
2017-11-23 10:23:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
"routes": {
|
|
|
|
|
2017-11-29 11:29:27 +00:00
|
|
|
"/js/bundle.js": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "page:bundle",
|
|
|
|
"arguments": {}
|
|
|
|
},
|
|
|
|
|
2017-11-23 10:23:09 +00:00
|
|
|
"/{page}/": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "page:load",
|
|
|
|
"arguments": {
|
|
|
|
"page": "[a-z]+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/api/v/1.0/{module}/{method}{uri_args}": {
|
2017-11-23 11:56:07 +00:00
|
|
|
"methods": ["GET", "POST", "PUT", "DELETE", "VIEW"],
|
2017-11-23 10:23:09 +00:00
|
|
|
"controller": "api:call",
|
|
|
|
"arguments": {
|
|
|
|
"module": "[a-zA-Z_]+",
|
|
|
|
"method": "[a-zA-Z_]+",
|
|
|
|
"uri_args": "(\\/[\\w:-]+)*\\/?"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/{any}": {
|
|
|
|
"methods": ["GET"],
|
2017-11-28 15:48:59 +00:00
|
|
|
"controller": "redirect:home",
|
2017-11-23 10:23:09 +00:00
|
|
|
"arguments": {
|
|
|
|
"any": ".*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|