]> Raphaƫl G. Git Repositories - treebundle/blobdiff - Resources/config/routes/rapsystree.yaml
Add rapsystree and security configuration
[treebundle] / Resources / config / routes / rapsystree.yaml
index b58bb21bc4e6f3c1074f150c6c22ff5bb269c119..69e28824f1c3f95073a80f2556ab2b52a1de856e 100644 (file)
@@ -1,5 +1,21 @@
 # Routes configuration
 rapsystree:
 # Routes configuration
 rapsystree:
-    path: '/{path<.*>?}'
+    path:
+        en_gb: '/en'
+        fr_fr: '/'
     controller: Rapsys\TreeBundle\Controller\TreeController::index
     methods: GET
     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