From b00c70717b63e27faba06270bcbbc20b47cdc524 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 18 Oct 2024 06:34:57 +0200 Subject: [PATCH 1/1] Add directory and document routes --- Resources/config/routes/rapsystree.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Resources/config/routes/rapsystree.yaml b/Resources/config/routes/rapsystree.yaml index b58bb21..69e2882 100644 --- a/Resources/config/routes/rapsystree.yaml +++ b/Resources/config/routes/rapsystree.yaml @@ -1,5 +1,21 @@ # Routes configuration rapsystree: - path: '/{path<.*>?}' + path: + en_gb: '/en' + fr_fr: '/' controller: Rapsys\TreeBundle\Controller\TreeController::index methods: GET + +rapsystree_directory: + path: + en_gb: '/en/directory/{path<.+>?}' + fr_fr: '/chemin/{path<.+>?}' + controller: Rapsys\TreeBundle\Controller\TreeController::directory + methods: GET + +rapsystree_document: + path: + en_gb: '/en/document/{file<.+>?}' + fr_fr: '/document/{file<.+>?}' + controller: Rapsys\TreeBundle\Controller\TreeController::document + methods: GET -- 2.41.1