]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/routes/rapsys_air.yaml
Update fixtures
[airbundle] / Resources / config / routes / rapsys_air.yaml
1 #https://symfony.com/doc/current/controller.html#controller-request-argument
2 #CRUD: edit, index, new, show, _delete_form, _form
3 #https://symfony.com/doc/current/routing.html#localized-routes-i18n
4 #SCRUD: index, add, edit, delete, view
5
6 #TODO: rename view in show ???
7 rapsys_air:
8 path:
9 en_gb: '/en'
10 fr_fr: '/'
11 controller: Rapsys\AirBundle\Controller\DefaultController::index
12 methods: GET
13
14 rapsys_air_about:
15 path:
16 en_gb: '/en/about'
17 fr_fr: '/a-propos'
18 controller: Rapsys\AirBundle\Controller\DefaultController::about
19 methods: GET
20
21 rapsys_air_contact:
22 path:
23 en_gb: '/en/contact/{id<\d*>?}/{user<[\w-]*>?}'
24 fr_fr: '/contacter/{id<\d*>?}/{user<[\w-]*>?}'
25 controller: Rapsys\AirBundle\Controller\DefaultController::contact
26 methods: GET|POST
27
28 rapsys_air_calendar:
29 path:
30 en_gb: '/en/calendar'
31 fr_fr: '/calendrier'
32 controller: Rapsys\AirBundle\Controller\CalendarController::index
33 methods: GET|POST
34
35 rapsys_air_calendar_callback:
36 path: '/calendar/callback'
37 controller: Rapsys\AirBundle\Controller\CalendarController::callback
38 methods: GET
39
40 rapsys_air_city:
41 path:
42 'en_gb': '/en/city'
43 'fr_fr': '/ville'
44 controller: Rapsys\AirBundle\Controller\LocationController::cities
45 methods: GET|POST
46
47 rapsys_air_city_view:
48 path:
49 'en_gb': '/en/city/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
50 'fr_fr': '/ville/{latitude<-?(?:\d*\.)?\d+>}/{longitude<-?(?:\d*\.)?\d+>}/{city<[\w-]+>}'
51 controller: Rapsys\AirBundle\Controller\LocationController::city
52 methods: GET|POST
53
54 rapsys_air_dance:
55 path:
56 'en_gb': '/en/dance'
57 'fr_fr': '/danse'
58 controller: Rapsys\AirBundle\Controller\DanceController::index
59 methods: GET|POST
60
61 rapsys_air_dance_view:
62 path:
63 'en_gb': '/en/dance/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
64 'fr_fr': '/danse/{id<[0-9]+>}/{name<[\w-]+>}/{type<[\w-]+>}'
65 controller: Rapsys\AirBundle\Controller\DanceController::view
66 methods: GET|POST
67
68 rapsys_air_dance_name:
69 path:
70 'en_gb': '/en/dance/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
71 'fr_fr': '/danse/{name<[a-zA-Z0-9=_-]+>}/{dance<[\w-]+>}'
72 controller: Rapsys\AirBundle\Controller\DanceController::name
73 methods: GET|POST
74
75 rapsys_air_frequently_asked_questions:
76 path:
77 en_gb: '/en/frequently-asked-questions'
78 fr_fr: '/foire-aux-questions'
79 controller: Rapsys\AirBundle\Controller\DefaultController::frequentlyAskedQuestions
80 methods: GET
81
82 rapsys_air_organizer_regulation:
83 path:
84 en_gb: '/en/organizer-regulation'
85 fr_fr: '/reglement-organisateur'
86 controller: Rapsys\AirBundle\Controller\DefaultController::organizerRegulation
87 methods: GET
88
89 rapsys_air_terms_of_service:
90 path:
91 en_gb: '/en/terms-of-service'
92 fr_fr: '/conditions-generales-d-utilisation'
93 controller: Rapsys\AirBundle\Controller\DefaultController::termsOfService
94 methods: GET
95
96 rapsys_air_dispute:
97 path:
98 en_gb: '/en/dispute'
99 fr_fr: '/contestation'
100 controller: Rapsys\AirBundle\Controller\DefaultController::dispute
101 methods: GET|POST
102
103 rapsys_air_location:
104 path:
105 en_gb: '/en/location'
106 fr_fr: '/emplacement'
107 controller: Rapsys\AirBundle\Controller\LocationController::index
108 methods: GET|POST
109
110 rapsys_air_location_view:
111 path:
112 en_gb: '/en/location/{id<\d+>}/{location<[\w-]+>?}'
113 fr_fr: '/emplacement/{id<\d+>}/{location<[\w-]+>?}'
114 controller: Rapsys\AirBundle\Controller\LocationController::view
115 methods: GET
116
117 rapsys_air_application_add:
118 path:
119 en_gb: '/en/application'
120 fr_fr: '/reservation'
121 controller: Rapsys\AirBundle\Controller\ApplicationController::add
122 methods: GET|POST
123
124 rapsys_air_session:
125 path:
126 en_gb: '/en/session'
127 fr_fr: '/seance'
128 controller: Rapsys\AirBundle\Controller\SessionController::index
129 methods: GET
130
131 rapsys_air_session_tangoargentin:
132 path:
133 en_gb: '/en/session/tangoargentin'
134 fr_fr: '/seance/tangoargentin'
135 format: json
136 controller: Rapsys\AirBundle\Controller\SessionController::tangoargentin
137 methods: GET
138
139 rapsys_air_session_view:
140 path:
141 en_gb: '/en/session/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
142 fr_fr: '/seance/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}'
143 controller: Rapsys\AirBundle\Controller\SessionController::view
144 methods: GET|POST
145
146 rapsys_air_snippet_add:
147 path:
148 en_gb: '/en/snippet'
149 fr_fr: '/extrait'
150 controller: Rapsys\AirBundle\Controller\SnippetController::add
151 methods: POST
152
153 rapsys_air_snippet_edit:
154 path:
155 en_gb: '/en/snippet/{id<\d+>}'
156 fr_fr: '/extrait/{id<\d+>}'
157 controller: Rapsys\AirBundle\Controller\SnippetController::edit
158 methods: POST
159
160 rapsys_air_user:
161 path:
162 en_gb: '/en/user'
163 fr_fr: '/utilisateur'
164 controller: Rapsys\AirBundle\Controller\DefaultController::userIndex
165 methods: GET
166
167 rapsys_air_user_view:
168 path:
169 en_gb: '/en/user/{id<\d+>}/{user<[\w-]+>?}'
170 fr_fr: '/utilisateur/{id<\d+>}/{user<[\w-]+>?}'
171 #TODO: changer pour DefaultController::organizer ou DefaultController::user et dropper cette classe useless
172 controller: Rapsys\AirBundle\Controller\OrganizerController::view
173 methods: GET|POST
174
175 rapsys_air_user_milongaraphael:
176 path:
177 en_gb: '/en/milonga-raphael'
178 fr_fr: '/milonga-raphael'
179 #TODO: changer pour DefaultController::organizer ou DefaultController::user et dropper cette classe useless
180 controller: Rapsys\AirBundle\Controller\OrganizerController::view
181 defaults:
182 # default parameters
183 id: 1
184 user: 'milonga-raphael'
185
186 rapsys_user_confirm:
187 path:
188 en_gb: '/en/confirm/{hash}/{mail}'
189 fr_fr: '/confirmer/{hash}/{mail}'
190 controller: Rapsys\UserBundle\Controller\DefaultController::confirm
191 requirements:
192 mail: '[a-zA-Z0-9=_-]+'
193 hash: '[a-zA-Z0-9=_-]+'
194 methods: GET|POST
195
196 rapsys_user_edit:
197 path:
198 en_gb: '/en/user/{hash}/{mail}'
199 fr_fr: '/utilisateur/{hash}/{mail}'
200 controller: Rapsys\AirBundle\Controller\UserController::edit
201 requirements:
202 mail: '[a-zA-Z0-9=_-]+'
203 hash: '[a-zA-Z0-9=_-]+'
204 methods: GET|POST
205
206 rapsys_user_login:
207 path:
208 en_gb: '/en/login/{hash}/{mail}'
209 fr_fr: '/connecter/{hash}/{mail}'
210 controller: Rapsys\UserBundle\Controller\DefaultController::login
211 defaults:
212 mail: ~
213 hash: ~
214 requirements:
215 mail: '[a-zA-Z0-9=_-]+'
216 hash: '[a-zA-Z0-9=_-]+'
217 methods: GET|POST
218
219 rapsys_user_logout:
220 path:
221 en_gb: '/en/logout'
222 fr_fr: '/deconnecter'
223 methods: GET
224
225 rapsys_user_recover:
226 path:
227 en_gb: '/en/recover/{hash}/{pass}/{mail}'
228 fr_fr: '/recuperer/{hash}/{pass}/{mail}'
229 controller: Rapsys\UserBundle\Controller\DefaultController::recover
230 defaults:
231 mail: ~
232 pass: ~
233 hash: ~
234 requirements:
235 mail: '[a-zA-Z0-9=_-]+'
236 pass: '[a-zA-Z0-9=_-]+'
237 hash: '[a-zA-Z0-9=_-]+'
238 methods: GET|POST
239
240 rapsys_user_register:
241 path:
242 en_gb: '/en/register/{hash}/{field}/{mail}'
243 fr_fr: '/enregistrer/{hash}/{field}/{mail}'
244 controller: Rapsys\UserBundle\Controller\DefaultController::register
245 defaults:
246 mail: ~
247 field: ~
248 hash: ~
249 requirements:
250 mail: '[a-zA-Z0-9=_-]+'
251 field: '[a-zA-Z0-9=_-]+'
252 hash: '[a-zA-Z0-9=_-]+'
253 methods: GET|POST