mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 11:54:41 +02:00
17 lines
No EOL
570 B
YAML
17 lines
No EOL
570 B
YAML
#index:
|
|
# path: /
|
|
# controller: App\Controller\DefaultController::index
|
|
|
|
# Redirect every url without an locale to the locale of the user/the global base locale
|
|
|
|
scan_qr:
|
|
path: /scan/{type}/{id}
|
|
controller: App\Controller\ScanController:scanQRCode
|
|
|
|
redirector:
|
|
path: /{url}
|
|
requirements:
|
|
url: ".*"
|
|
controller: App\Controller\RedirectController:addLocalePart
|
|
# 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})?\\\\//')" |