X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/c74ab618abe6dad2df2e2e2139cec77188da6208..refs/heads/master:/config/routes/rapsystree.yaml diff --git a/config/routes/rapsystree.yaml b/config/routes/rapsystree.yaml index 03d85ea..ab0db7f 100644 --- a/config/routes/rapsystree.yaml +++ b/config/routes/rapsystree.yaml @@ -15,32 +15,19 @@ rapsystree_about: rapsystree_album: path: - en_gb: '/en/album/{id}/{slug}{path}' - fr_fr: '/album/{id}/{slug}{path}' + en_gb: '/en/album/{id}/{slug}/{path}' + fr_fr: '/album/{id}/{slug}/{path}' controller: Rapsys\TreeBundle\Controller\TreeController::album defaults: id: ~ - path: ~ + path: '' slug: ~ requirements: id: '\d+' - path: '/.*' + path: '.*?' slug: '[\w-]+' methods: GET|POST -rapsystree_asset: - path: - 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_contact: path: en_gb: '/en/contact' @@ -75,6 +62,19 @@ rapsysuser_edit: hash: '[a-zA-Z0-9=_-]+' methods: GET|POST +rapsystree_element: + path: + en_gb: '/en/element/{id}/{path}' + fr_fr: '/element/{id}/{path}' + controller: Rapsys\TreeBundle\Controller\TreeController::element + defaults: + id: ~ + path: '' + requirements: + id: '\d+' + path: '.*?' + methods: GET + rapsysuser_index: path: en_gb: '/en/user'