]> Raphaƫl G. Git Repositories - treebundle/blobdiff - config/routes/rapsystree.yaml
Remove document route
[treebundle] / config / routes / rapsystree.yaml
index cb028f03016db740f38395829eb1b7ebe2ca9ff8..03d85ead5eb67f690db7062e9ab6c3fe65720b95 100644 (file)
@@ -13,25 +13,39 @@ rapsystree_about:
     controller: Rapsys\TreeBundle\Controller\TreeController::about
     methods: GET
 
-rapsystree_contact:
+rapsystree_album:
     path:
-        en_gb: '/en/contact'
-        fr_fr: '/contacter'
-    controller: Rapsys\TreeBundle\Controller\TreeController::contact
-    methods: GET
+        en_gb: '/en/album/{id}/{slug}{path}'
+        fr_fr: '/album/{id}/{slug}{path}'
+    controller: Rapsys\TreeBundle\Controller\TreeController::album
+    defaults:
+        id: ~
+        path: ~
+        slug: ~
+    requirements:
+        id: '\d+'
+        path: '/.*'
+        slug: '[\w-]+'
+    methods: GET|POST
 
-rapsystree_directory:
+rapsystree_asset:
     path:
-        en_gb: '/en/directory/{path<.+>?}'
-        fr_fr: '/chemin/{path<.+>?}'
-    controller: Rapsys\TreeBundle\Controller\TreeController::directory
-    methods: GET
+        en_gb: '/en/asset/{id}{path}'
+        fr_fr: '/actif/{id}{path}'
+    controller: Rapsys\TreeBundle\Controller\TreeController::asset
+    defaults:
+        id: ~
+        path: ~
+    requirements:
+        id: '\d+'
+        path: '/.*'
+    methods: GET|POST
 
-rapsystree_document:
+rapsystree_contact:
     path:
-        en_gb: '/en/document/{file<.+>?}'
-        fr_fr: '/document/{file<.+>?}'
-    controller: Rapsys\TreeBundle\Controller\TreeController::document
+        en_gb: '/en/contact'
+        fr_fr: '/contacter'
+    controller: Rapsys\TreeBundle\Controller\TreeController::contact
     methods: GET
 
 rapsystree_terms_of_service: