From: Raphaƫl Gertz <git@rapsys.eu>
Date: Fri, 18 Oct 2024 04:34:57 +0000 (+0200)
Subject: Add directory and document routes
X-Git-Tag: 0.0.4~2
X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/b00c70717b63e27faba06270bcbbc20b47cdc524?ds=inline

Add directory and document routes
---

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