website/config/routes.yaml

13 lines
317 B
YAML

error:
path: '/error/{status}'
defaults:
_controller: JeroenED\Website\Controller\DefaultController::ErrorAction
status: '404'
default:
path: '/{page}'
defaults:
_controller: JeroenED\Website\Controller\DefaultController::DefaultAction
page: 'index'
requirements:
page: "[a-zA-Z0-9\/]+"