2019-02-23 16:49:38 +01:00
|
|
|
#index:
|
|
|
|
# path: /
|
|
|
|
# controller: App\Controller\DefaultController::index
|
2019-09-12 17:50:33 +02:00
|
|
|
|
|
|
|
# Redirect every url without an locale to the locale of the user/the global base locale
|
2020-04-26 18:59:49 +02:00
|
|
|
|
|
|
|
scan_qr:
|
|
|
|
path: /scan/{type}/{id}
|
|
|
|
controller: App\Controller\ScanController:scanQRCode
|
|
|
|
|
2022-08-03 21:40:42 +02:00
|
|
|
csp_report:
|
|
|
|
path: /csp/report
|
|
|
|
methods: [POST]
|
|
|
|
defaults: { _controller: nelmio_security.csp_reporter_controller::indexAction }
|
|
|
|
|
|
|
|
# Must be last as it matches everything
|
2020-04-28 17:23:57 +02:00
|
|
|
redirector:
|
|
|
|
path: /{url}
|
|
|
|
requirements:
|
|
|
|
url: ".*"
|
2020-05-31 20:01:01 +02:00
|
|
|
controller: App\Controller\RedirectController::addLocalePart
|
2020-04-28 17:23:57 +02:00
|
|
|
# Dont match localized routes (no redirection loop, if no root with that name exists)
|
|
|
|
condition: "not (request.getPathInfo() matches '/^\\\\/[a-z]{2}(_[A-Z]{2})?\\\\//')"
|