]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/routes/rapsys_blog.yaml
Use entity id as last resort sorting parameter
[blogbundle] / Resources / config / routes / rapsys_blog.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_blog:
8 path:
9 en_gb: '/en'
10 fr_fr: '/'
11 controller: Rapsys\BlogBundle\Controller\DefaultController::index
12 methods: GET
13
14 rapsys_blog_about:
15 path:
16 en_gb: '/en/about'
17 fr_fr: '/a-propos'
18 controller: Rapsys\BlogBundle\Controller\DefaultController::about
19 methods: GET
20
21 rapsys_blog_contact:
22 path:
23 en_gb: '/en/contact/{id<\d*>?}/{user<[\w-]*>?}'
24 fr_fr: '/contacter/{id<\d*>?}/{user<[\w-]*>?}'
25 controller: Rapsys\BlogBundle\Controller\DefaultController::contact
26 methods: GET|POST
27
28 rapsys_blog_article:
29 path:
30 en_gb: '/en/article'
31 fr_fr: '/article'
32 controller: Rapsys\BlogBundle\Controller\ArticleController::index
33 methods: GET|POST
34
35 rapsys_blog_article_view:
36 path:
37 en_gb: '/en/article/{id<\d*>?}/{slug<[\w-]*>?}'
38 fr_fr: '/article/{id<\d*>?}/{slug<[\w-]*>?}'
39 controller: Rapsys\BlogBundle\Controller\ArticleController::view
40 methods: GET|POST
41
42 rapsys_blog_keyword:
43 path:
44 en_gb: '/en/keyword'
45 fr_fr: '/mot-cle'
46 controller: Rapsys\BlogBundle\Controller\KeywordController::index
47 methods: GET|POST
48
49 rapsys_blog_keyword_view:
50 path:
51 en_gb: '/en/keyword/{id<\d*>?}/{slug<[\w-]*>?}'
52 fr_fr: '/mot-cle/{id<\d*>?}/{slug<[\w-]*>?}'
53 controller: Rapsys\BlogBundle\Controller\KeywordController::view
54 methods: GET|POST
55
56 rapsys_blog_frequently_asked_questions:
57 path:
58 en_gb: '/en/frequently-asked-questions'
59 fr_fr: '/foire-aux-questions'
60 controller: Rapsys\BlogBundle\Controller\DefaultController::frequentlyAskedQuestions
61 methods: GET
62
63 rapsys_blog_terms_of_service:
64 path:
65 en_gb: '/en/terms-of-service'
66 fr_fr: '/conditions-generales-d-utilisation'
67 controller: Rapsys\BlogBundle\Controller\DefaultController::termsOfService
68 methods: GET
69
70 rapsys_blog_user:
71 path:
72 en_gb: '/en/user'
73 fr_fr: '/utilisateur'
74 controller: Rapsys\BlogBundle\Controller\UserController::index
75 methods: GET
76
77 rapsys_blog_user_view:
78 path:
79 en_gb: '/en/user/{id<\d+>}/{slug<[\w-]+>?}'
80 fr_fr: '/utilisateur/{id<\d+>}/{slug<[\w-]+>?}'
81 controller: Rapsys\BlogBundle\Controller\UserController::view
82 methods: GET|POST
83
84 rapsys_user_confirm:
85 path:
86 en_gb: '/en/confirm/{hash}/{mail}'
87 fr_fr: '/confirmer/{hash}/{mail}'
88 controller: Rapsys\UserBundle\Controller\UserController::confirm
89 requirements:
90 mail: '[a-zA-Z0-9=_-]+'
91 hash: '[a-zA-Z0-9=_-]+'
92 methods: GET|POST
93
94 rapsys_user_edit:
95 path:
96 en_gb: '/en/user/{hash}/{mail}'
97 fr_fr: '/utilisateur/{hash}/{mail}'
98 controller: Rapsys\UserBundle\Controller\UserController::edit
99 requirements:
100 mail: '[a-zA-Z0-9=_-]+'
101 hash: '[a-zA-Z0-9=_-]+'
102 methods: GET|POST
103
104 rapsys_user_login:
105 path:
106 en_gb: '/en/login/{hash}/{mail}'
107 fr_fr: '/connecter/{hash}/{mail}'
108 controller: Rapsys\UserBundle\Controller\UserController::login
109 defaults:
110 mail: ~
111 hash: ~
112 requirements:
113 mail: '[a-zA-Z0-9=_-]+'
114 hash: '[a-zA-Z0-9=_-]+'
115 methods: GET|POST
116
117 rapsys_user_logout:
118 path:
119 en_gb: '/en/logout'
120 fr_fr: '/deconnecter'
121 methods: GET
122
123 rapsys_user_recover:
124 path:
125 en_gb: '/en/recover/{hash}/{pass}/{mail}'
126 fr_fr: '/recuperer/{hash}/{pass}/{mail}'
127 controller: Rapsys\UserBundle\Controller\UserController::recover
128 defaults:
129 mail: ~
130 pass: ~
131 hash: ~
132 requirements:
133 mail: '[a-zA-Z0-9=_-]+'
134 pass: '[a-zA-Z0-9=_-]+'
135 hash: '[a-zA-Z0-9=_-]+'
136 methods: GET|POST
137
138 rapsys_user_register:
139 path:
140 en_gb: '/en/register'
141 fr_fr: '/enregistrer'
142 controller: Rapsys\UserBundle\Controller\UserController::register
143 methods: GET|POST