{ "routes": { "route_name": { "path": "/", "controller": "\\Index\\Controller\\IndexController", "function": "index" }, "route_name2": { "path": "/test/{slug}/", "controller": "\\Index\\Controller\\IndexController", "function": "test", "args": { "slug": { "regex": "/[a-z]+/" } } } } }