]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/config/routes/rapsys_air.yaml
Default to fr routes
[airbundle] / Resources / config / routes / rapsys_air.yaml
1 #https://symfony.com/doc/current/routing.html#localized-routes-i18n
2 #SCRUD: index, add, edit, delete, view
3 rapsys_air:
4 path:
5 en: '/en'
6 fr: '/'
7 controller: Rapsys\AirBundle\Controller\DefaultController::index
8 methods: GET
9
10 rapsys_air_contact:
11 path:
12 en: '/en/contact'
13 fr: '/contact'
14 controller: Rapsys\AirBundle\Controller\DefaultController::contact
15 methods: GET|POST
16
17 rapsys_air_regulation:
18 path:
19 en: '/en/regulation'
20 fr: '/reglement'
21 controller: Rapsys\AirBundle\Controller\DefaultController::regulation
22 methods: GET
23
24 rapsys_air_location:
25 path:
26 en: '/en/location'
27 fr: '/emplacement'
28 controller: Rapsys\AirBundle\Controller\LocationController::index
29 methods: GET
30
31 rapsys_air_location_view:
32 path:
33 en: '/en/location/{id<\d+>}'
34 fr: '/emplacement/{id<\d+>}'
35 controller: Rapsys\AirBundle\Controller\LocationController::view
36 methods: GET
37
38 rapsys_air_application_add:
39 path:
40 en: '/en/application'
41 fr: '/reservation'
42 controller: Rapsys\AirBundle\Controller\ApplicationController::add
43 methods: POST
44
45 rapsys_air_application_edit:
46 path:
47 en: '/en/application/{id<\d+>}'
48 fr: '/reservation/{id<\d+>}'
49 controller: Rapsys\AirBundle\Controller\ApplicationController::edit
50 methods: POST
51
52 rapsys_air_session_view:
53 path:
54 en: '/en/session/{id<\d+>}'
55 fr: '/seance/{id<\d+>}'
56 controller: Rapsys\AirBundle\Controller\SessionController::view
57 methods: GET
58
59 rapsys_air_user:
60 path:
61 en: '/en/user'
62 fr: '/utilisateur'
63 controller: Rapsys\AirBundle\Controller\UserController::index
64 methods: GET
65
66 rapsys_air_user_view:
67 path:
68 en: '/en/user/{id<\d+>}'
69 fr: '/utilisateur/{id<\d+>}'
70 controller: Rapsys\AirBundle\Controller\UserController::view
71 methods: GET