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