LinkProtection/config/routing.yml

12 lines
498 B
YAML
Executable file

pedodev_linkprotection_protected_page_route:
path: /{protected_prefix}/link/{link}
defaults: { _controller: pedodev.linkprotection.protected_page_controller:handle, link: '' }
requirements:
protected_prefix: '\w+'
link: '[\w\-]+\.{0,2}'
pedodev_linkprotection_protected_captcha_route:
path: /{protected_prefix}/captcha
defaults: { _controller: pedodev.linkprotection.protected_page_captcha_controller:handle, }
requirements:
protected_prefix: '\w+'