mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Match only valid locales for localized routes.
This commit is contained in:
parent
0bfcec77fb
commit
6e74eb8276
1 changed files with 3 additions and 0 deletions
|
@ -3,3 +3,6 @@ controllers:
|
|||
type: annotation
|
||||
|
||||
prefix: '{_locale}'
|
||||
requirements:
|
||||
# Match only locales like de_DE or de
|
||||
_locale: "^[a-z]{2}(_[A-Z]{2})?$"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue