]> Raphaël G. Git Repositories - treebundle/commitdiff
Add directory and document routes
authorRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:34:57 +0000 (06:34 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:34:57 +0000 (06:34 +0200)
Resources/config/routes/rapsystree.yaml

index b58bb21bc4e6f3c1074f150c6c22ff5bb269c119..69e28824f1c3f95073a80f2556ab2b52a1de856e 100644 (file)
@@ -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