2018-02-17 17:18:58 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
"methods": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ],
|
|
|
|
|
|
|
|
|
|
|
|
"routes": {
|
|
|
|
|
2018-02-19 23:52:07 +00:00
|
|
|
|
|
|
|
"/js/_SERVER.js": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "js:server",
|
|
|
|
"arguments": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/js/bundle{page}.js": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "js:bundle",
|
|
|
|
"arguments": {
|
|
|
|
"page":"@[a-z]+"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-02-20 18:00:09 +00:00
|
|
|
"/{path}{color}": {
|
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "svg:color",
|
|
|
|
"arguments": {
|
|
|
|
"path": ".+\\.svg",
|
|
|
|
"color": "@[a-fA-F0-9]{6}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-02-20 16:17:53 +00:00
|
|
|
"/{page}/{uri}": {
|
2018-02-17 17:18:58 +00:00
|
|
|
"methods": ["GET"],
|
|
|
|
"controller": "page:load",
|
|
|
|
"arguments": {
|
2018-02-20 16:45:02 +00:00
|
|
|
"page": "\\w+",
|
2018-02-20 16:17:53 +00:00
|
|
|
"uri": ".*"
|
2018-02-17 17:18:58 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/api/v/1.0/{uri}": {
|
|
|
|
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
|
|
|
"controller": "api:call",
|
|
|
|
"arguments": {
|
|
|
|
"uri": ".*"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"/{any}": {
|
|
|
|
"methods": ["GET"],
|
2018-02-19 23:52:07 +00:00
|
|
|
"controller": "redirect:home",
|
2018-02-17 17:18:58 +00:00
|
|
|
"arguments": {
|
|
|
|
"any": ".*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|