You can find the yaml collection here :
@crazy_app/config/Router.yml
Exemple of config with all options well filled :
# Name of router
- name: Home
# Controller to call
controller: App\Controller\App\Home
patterns:
- /index/
# HTTP Method calling static method of controller with same name
methods:
- get
# List of middlewares
middleware : {}
Full pattern is depending of pagesPrefix
Exemple of config with all options well filled :
# Name of router
- name: Home
# Controller to call
controller: App\Controller\App\Home
patterns:
- /index/
# HTTP Method calling static method of controller with same name
methods:
- get
# List of middlewares
middleware : {}
Full pattern is depending of apiPrefix
Exemple of config with all options well filled :
# Name of router
- name: Home
# Controller to call
controller: App\Controller\App\Home
patterns:
- /index/
# HTTP Method calling static method of controller with same name
methods:
- get
# List of middlewares
middleware : {}
Full pattern is depending of assetsPrefix
New router
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new router
Delete router
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete router
New router type
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new routerType