Rapsys Git
/
treebundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a341df3
)
Add directory and document routes
author
Raphaël Gertz
<git@rapsys.eu>
Fri, 18 Oct 2024 04:34:57 +0000
(06:34 +0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Fri, 18 Oct 2024 04:34:57 +0000
(06:34 +0200)
Resources/config/routes/rapsystree.yaml
patch
|
blob
|
history
diff --git
a/Resources/config/routes/rapsystree.yaml
b/Resources/config/routes/rapsystree.yaml
index b58bb21bc4e6f3c1074f150c6c22ff5bb269c119..69e28824f1c3f95073a80f2556ab2b52a1de856e 100644
(file)
--- a/
Resources/config/routes/rapsystree.yaml
+++ b/
Resources/config/routes/rapsystree.yaml
@@
-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