0
0
mirror of https://github.com/kevinpapst/kimai2.git synced 2024-12-22 04:08:29 +00:00
kevinpapst_kimai2/config/routes.yaml
Kevin Papst 9e3d243b4b
use enabled_locales logic to handle locales (#5017)
* allow to skip locales (here: catalan)
* use enabled_locales and replace app_locales with kimai_locales
* added test to call all reports once for super_admin
2024-08-11 17:43:20 +02:00

61 lines
1.3 KiB
YAML

controllers:
resource: ../src/Controller/
type: attribute
prefix: /{_locale}
defaults:
_locale: '%locale%'
api.swagger_ui:
path: /api/doc
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
api.swagger:
path: /api/doc.json
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger }
api:
resource: ../src/API/
type: attribute
prefix: /api
auth:
resource: ../src/Controller/Auth/
type: attribute
prefix: /auth
security:
resource: ../src/Controller/Security/
type: attribute
prefix: /{_locale}
defaults:
_locale: '%locale%'
kernel:
resource: ../src/Kernel.php
type: attribute
home:
path: /
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
route: homepage
permanent: true
homeLocale:
path: /{_locale}
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction
_locale: '%locale%'
route: homepage
permanent: true
2fa_login:
path: /{_locale}/auth/2fa
defaults:
_controller: "scheb_two_factor.form_controller::form"
2fa_login_check:
path: /{_locale}/auth/2fa_check