]> Raphaƫl G. Git Repositories - treebundle/blob - config/routes/rapsystree.yaml
Add languages extra argument
[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_contact:
17 path:
18 en_gb: '/en/contact'
19 fr_fr: '/contacter'
20 controller: Rapsys\TreeBundle\Controller\TreeController::contact
21 methods: GET
22
23 rapsystree_directory:
24 path:
25 en_gb: '/en/directory/{path<.+>?}'
26 fr_fr: '/chemin/{path<.+>?}'
27 controller: Rapsys\TreeBundle\Controller\TreeController::directory
28 methods: GET
29
30 rapsystree_document:
31 path:
32 en_gb: '/en/document/{file<.+>?}'
33 fr_fr: '/document/{file<.+>?}'
34 controller: Rapsys\TreeBundle\Controller\TreeController::document
35 methods: GET
36
37 rapsystree_terms_of_service:
38 path:
39 en_gb: '/en/terms-of-service'
40 fr_fr: '/conditions-generales-d-utilisation'
41 controller: Rapsys\TreeBundle\Controller\TreeController::tos
42 methods: GET
43
44 rapsysuser_confirm:
45 path:
46 en_gb: '/en/confirm/{hash}/{mail}'
47 fr_fr: '/confirmer/{hash}/{mail}'
48 controller: Rapsys\UserBundle\Controller\UserController::confirm
49 requirements:
50 mail: '[a-zA-Z0-9=_-]+'
51 hash: '[a-zA-Z0-9=_-]+'
52 methods: GET
53
54 rapsysuser_edit:
55 path:
56 en_gb: '/en/user/{hash}/{mail}'
57 fr_fr: '/utilisateur/{hash}/{mail}'
58 controller: Rapsys\UserBundle\Controller\UserController::edit
59 requirements:
60 mail: '[a-zA-Z0-9=_-]+'
61 hash: '[a-zA-Z0-9=_-]+'
62 methods: GET|POST
63
64 rapsysuser_index:
65 path:
66 en_gb: '/en/user'
67 fr_fr: '/utilisateur'
68 controller: Rapsys\UserBundle\Controller\UserController::index
69 methods: GET
70
71 rapsysuser_login:
72 path:
73 en_gb: '/en/login/{hash}/{mail}'
74 fr_fr: '/connecter/{hash}/{mail}'
75 controller: Rapsys\UserBundle\Controller\UserController::login
76 defaults:
77 mail: ~
78 hash: ~
79 requirements:
80 mail: '[a-zA-Z0-9=_-]+'
81 hash: '[a-zA-Z0-9=_-]+'
82 methods: GET|POST
83
84 rapsysuser_logout:
85 path:
86 en_gb: '/en/logout'
87 fr_fr: '/deconnecter'
88 methods: GET
89
90 rapsysuser_recover:
91 path:
92 en_gb: '/en/recover/{hash}/{pass}/{mail}'
93 fr_fr: '/recuperer/{hash}/{pass}/{mail}'
94 controller: Rapsys\UserBundle\Controller\UserController::recover
95 defaults:
96 mail: ~
97 pass: ~
98 hash: ~
99 requirements:
100 mail: '[a-zA-Z0-9=_-]+'
101 pass: '[a-zA-Z0-9=_-]+'
102 hash: '[a-zA-Z0-9=_-]+'
103 methods: GET|POST
104
105 rapsysuser_register:
106 path:
107 en_gb: '/en/register/{hash}/{field}/{mail}'
108 fr_fr: '/enregistrer/{hash}/{field}/{mail}'
109 controller: Rapsys\UserBundle\Controller\UserController::register
110 defaults:
111 mail: ~
112 field: ~
113 hash: ~
114 requirements:
115 mail: '[a-zA-Z0-9=_-]+'
116 field: '[a-zA-Z0-9=_-]+'
117 hash: '[a-zA-Z0-9=_-]+'
118 methods: GET|POST