ptut-vhost/config/routes.json

51 lines
728 B
JSON
Raw Normal View History

2018-02-17 17:18:58 +00:00
{
"methods": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ],
"routes": {
"/js/_SERVER.js": {
"methods": ["GET"],
"controller": "js:server",
"arguments": {}
},
"/js/bundle{page}.js": {
"methods": ["GET"],
"controller": "js:bundle",
"arguments": {
"page":"@[a-z]+"
}
},
"/{page}/{uri}": {
2018-02-17 17:18:58 +00:00
"methods": ["GET"],
"controller": "page:load",
"arguments": {
"page": "[a-z]+",
"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"],
"controller": "redirect:home",
2018-02-17 17:18:58 +00:00
"arguments": {
"any": ".*"
}
}
}
}