I have in my annotations.yaml following setup to use annotation route setup:
controllers:
resource: '../../src/Controller/'
type: annotation
prefix:
en: ''
sr: '/es'
de: '/fr'
kernel:
resource: ../../src/Kernel.php
type: annotation
My question here is can I create a separated area like mysite.com/userarea
without locale prefix?
It's protected area and I can use users language. I tried with this symfony route docs but I would like to keep annotations.
At the moment it looks like mysite.com/es/userarea
but I would wish mysite.com/userarea
.