Reworked routing for future usage with caching

This commit is contained in:
2019-03-29 00:10:42 +01:00
parent 5d522a2064
commit 0bf98c2bf1
2 changed files with 32 additions and 10 deletions

View File

@@ -1,8 +1,18 @@
{
"routes": {
"route_name": {
"path": "/example/test-{arg}",
"controller": "\\AdminPanel\\Modules\\ModuleName\\Controller\\ExampleController",
"example_route": {
"path": "/example",
"controller": "\\ModuleName\\Controller\\ExampleController",
"function": "index"
},
"loggedIn": {
"path":"/example/is-logged",
"controller":"\\ModuleName\\Controller\\ExampleController",
"function": "isLoggedIn"
},
"example_route_with_arg": {
"path": "/example/{arg}",
"controller": "\\ModuleName\\Controller\\ExampleController",
"function": "example",
"args": {
"arg": {