]> Raphaƫl G. Git Repositories - treebundle/blob - config/routes/rapsystree.yaml
Replace element path by name key
[treebundle] / config / routes / rapsystree.yaml
1 # Routes configuration
2 rapsystree:
3 path:
4 en_gb: '/en'
5 fr_fr: '/'
6 controller: Rapsys\TreeBundle\Controller\TreeController::index
7 methods: GET
8
9 rapsystree_about:
10 path:
11 en_gb: '/en/about'
12 fr_fr: '/a-propos'
13 controller: Rapsys\TreeBundle\Controller\TreeController::about
14 methods: GET
15
16 rapsystree_album:
17 path:
18 en_gb: '/en/album/{id}/{slug}{path}'
19 fr_fr: '/album/{id}/{slug}{path}'
20 controller: Rapsys\TreeBundle\Controller\TreeController::album
21 defaults:
22 id: ~
23 path: ~
24 slug: ~
25 requirements:
26 id: '\d+'
27 path: '/.*'
28 slug: '[\w-]+'
29 methods: GET|POST
30
31 rapsystree_contact:
32 path:
33 en_gb: '/en/contact'
34 fr_fr: '/contacter'
35 controller: Rapsys\TreeBundle\Controller\TreeController::contact
36 methods: GET
37
38 rapsystree_terms_of_service:
39 path:
40 en_gb: '/en/terms-of-service'
41 fr_fr: '/conditions-generales-d-utilisation'
42 controller: Rapsys\TreeBundle\Controller\TreeController::tos
43 methods: GET
44
45 rapsysuser_confirm:
46 path:
47 en_gb: '/en/confirm/{hash}/{mail}'
48 fr_fr: '/confirmer/{hash}/{mail}'
49 controller: Rapsys\UserBundle\Controller\UserController::confirm
50 requirements:
51 mail: '[a-zA-Z0-9=_-]+'
52 hash: '[a-zA-Z0-9=_-]+'
53 methods: GET
54
55 rapsysuser_edit:
56 path:
57 en_gb: '/en/user/{hash}/{mail}'
58 fr_fr: '/utilisateur/{hash}/{mail}'
59 controller: Rapsys\UserBundle\Controller\UserController::edit
60 requirements:
61 mail: '[a-zA-Z0-9=_-]+'
62 hash: '[a-zA-Z0-9=_-]+'
63 methods: GET|POST
64
65 rapsystree_element:
66 path:
67 en_gb: '/en/element/{id}{path}'
68 fr_fr: '/element/{id}{path}'
69 controller: Rapsys\TreeBundle\Controller\TreeController::element
70 defaults:
71 id: ~
72 path: ~
73 requirements:
74 id: '\d+'
75 path: '/.*'
76 methods: GET|POST
77
78 rapsysuser_index:
79 path:
80 en_gb: '/en/user'
81 fr_fr: '/utilisateur'
82 controller: Rapsys\UserBundle\Controller\UserController::index
83 methods: GET
84
85 rapsysuser_login:
86 path:
87 en_gb: '/en/login/{hash}/{mail}'
88 fr_fr: '/connecter/{hash}/{mail}'
89 controller: Rapsys\UserBundle\Controller\UserController::login
90 defaults:
91 mail: ~
92 hash: ~
93 requirements:
94 mail: '[a-zA-Z0-9=_-]+'
95 hash: '[a-zA-Z0-9=_-]+'
96 methods: GET|POST
97
98 rapsysuser_logout:
99 path:
100 en_gb: '/en/logout'
101 fr_fr: '/deconnecter'
102 methods: GET
103
104 rapsysuser_recover:
105 path:
106 en_gb: '/en/recover/{hash}/{pass}/{mail}'
107 fr_fr: '/recuperer/{hash}/{pass}/{mail}'
108 controller: Rapsys\UserBundle\Controller\UserController::recover
109 defaults:
110 mail: ~
111 pass: ~
112 hash: ~
113 requirements:
114 mail: '[a-zA-Z0-9=_-]+'
115 pass: '[a-zA-Z0-9=_-]+'
116 hash: '[a-zA-Z0-9=_-]+'
117 methods: GET|POST
118
119 rapsysuser_register:
120 path:
121 en_gb: '/en/register/{hash}/{field}/{mail}'
122 fr_fr: '/enregistrer/{hash}/{field}/{mail}'
123 controller: Rapsys\UserBundle\Controller\UserController::register
124 defaults:
125 mail: ~
126 field: ~
127 hash: ~
128 requirements:
129 mail: '[a-zA-Z0-9=_-]+'
130 field: '[a-zA-Z0-9=_-]+'
131 hash: '[a-zA-Z0-9=_-]+'
132 methods: GET|POST