From c74ab618abe6dad2df2e2e2139cec77188da6208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 3 Nov 2024 05:41:45 +0100 Subject: [PATCH 1/1] Remove document route Add album and asset routes --- config/routes/rapsystree.yaml | 42 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) 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: -- 2.41.1