]> Raphaƫl G. Git Repositories - treebundle/blob - config/routes/rapsystree.yaml
03d85ead5eb67f690db7062e9ab6c3fe65720b95
[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_asset:
32 path:
33 en_gb: '/en/asset/{id}{path}'
34 fr_fr: '/actif/{id}{path}'
35 controller: Rapsys\TreeBundle\Controller\TreeController::asset
36 defaults:
37 id: ~
38 path: ~
39 requirements:
40 id: '\d+'
41 path: '/.*'
42 methods: GET|POST
43
44 rapsystree_contact:
45 path:
46 en_gb: '/en/contact'
47 fr_fr: '/contacter'
48 controller: Rapsys\TreeBundle\Controller\TreeController::contact
49 methods: GET
50
51 rapsystree_terms_of_service:
52 path:
53 en_gb: '/en/terms-of-service'
54 fr_fr: '/conditions-generales-d-utilisation'
55 controller: Rapsys\TreeBundle\Controller\TreeController::tos
56 methods: GET
57
58 rapsysuser_confirm:
59 path:
60 en_gb: '/en/confirm/{hash}/{mail}'
61 fr_fr: '/confirmer/{hash}/{mail}'
62 controller: Rapsys\UserBundle\Controller\UserController::confirm
63 requirements:
64 mail: '[a-zA-Z0-9=_-]+'
65 hash: '[a-zA-Z0-9=_-]+'
66 methods: GET
67
68 rapsysuser_edit:
69 path:
70 en_gb: '/en/user/{hash}/{mail}'
71 fr_fr: '/utilisateur/{hash}/{mail}'
72 controller: Rapsys\UserBundle\Controller\UserController::edit
73 requirements:
74 mail: '[a-zA-Z0-9=_-]+'
75 hash: '[a-zA-Z0-9=_-]+'
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