From: Raphaƫl Gertz Date: Sun, 3 Nov 2024 04:41:45 +0000 (+0100) Subject: Remove document route X-Git-Tag: 0.0.7~2 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/c74ab618abe6dad2df2e2e2139cec77188da6208 Remove document route Add album and asset routes --- diff --git a/config/routes/rapsystree.yaml b/config/routes/rapsystree.yaml index cb028f0..03d85ea 100644 --- a/config/routes/rapsystree.yaml +++ b/config/routes/rapsystree.yaml @@ -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: