ptut-vhost/config/routes.json

60 lines
885 B
JSON
Raw Normal View History

2018-02-17 17:18:58 +00:00
{
"methods": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ],
"routes": {
"/api/v/1.0/{uri}": {
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"controller": "api:call",
"arguments": {
"uri": ".*"
}
},
"/js/_SERVER.js": {
"methods": ["GET"],
"controller": "js:server",
"arguments": {}
},
"/js/bundle{page}.js": {
"methods": ["GET"],
"controller": "js:bundle",
"arguments": {
"page":"@[a-z]+"
}
},
"/{path}{color}": {
"methods": ["GET"],
"controller": "svg:color",
"arguments": {
"path": ".+\\.svg",
"color": "@[a-fA-F0-9]{6}"
}
},
"/{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+",
"uri": ".*"
2018-02-17 17:18:58 +00:00
}
},
"/{any}": {
"methods": ["GET"],
"controller": "redirect:home",
2018-02-17 17:18:58 +00:00
"arguments": {
"any": ".*"
}
}
}
}