main/config/routes.json

37 lines
572 B
JSON
Raw Permalink Normal View History

{
"methods": [ "GET", "POST", "PUT", "DELETE", "VIEW" ],
"routes": {
"/{page}/": {
"methods": ["GET"],
"controller": "page:load",
"arguments": {
"page": "[a-z]+"
}
},
"/api/v/1.0/{module}/{method}{uri_args}": {
"methods": ["GET", "POST", "PUT", "DELETE", "VIEW"],
"controller": "api:call",
"arguments": {
"module": "[a-zA-Z_]+",
"method": "[a-zA-Z_]+",
"uri_args": "(\\/[\\w:-]+)*\\/?"
}
},
"/{any}": {
"methods": ["GET"],
"controller": "redirect:homepage",
"arguments": {
"any": ".*"
}
}
}
}