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-12-03 14:43:13 +00:00
|
|
|
"/{path}{color}": {
|
2017-11-29 11:29:27 +00:00
|
|
|
"methods": ["GET"],
|
2017-12-03 14:43:13 +00:00
|
|
|
"controller": "svg:color",
|
|
|
|
"arguments": {
|
|
|
|
"path": ".+\\.svg",
|
|
|
|
"color": "@[a-fA-F0-9]{6}"
|
|
|
|
}
|
2017-11-30 15:45:26 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"/js/_SERVER.js": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "js:server",
|
2017-11-29 11:29:27 +00:00
|
|
|
"arguments": {}
|
|
|
|
},
|
|
|
|
|
2017-12-03 14:43:13 +00:00
|
|
|
"/js/bundle.js": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "js:bundle",
|
|
|
|
"arguments": {}
|
|
|
|
},
|
|
|
|
|
2017-11-23 10:23:09 +00:00
|
|
|
"/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-12-04 21:55:41 +00:00
|
|
|
"controller": "page:load",
|
2017-11-23 10:23:09 +00:00
|
|
|
"arguments": {
|
|
|
|
"any": ".*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|