]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/config/routing.yml
Update translations
[blogbundle] / Resources / config / routing.yml
1 root:
2 path: /
3 defaults: { _controller: RapsysBlogBundle:Default:root }
4
5 homepage:
6 path: /{_locale}
7 defaults: { _controller: RapsysBlogBundle:Page:index }
8 requirements:
9 _locale: '%blog.locales%'
10
11 about:
12 path: /{_locale}/about
13 defaults: { _controller: RapsysBlogBundle:Page:about }
14 requirements:
15 _locale: '%blog.locales%'
16
17 contact:
18 path: /{_locale}/contact
19 defaults: { _controller: RapsysBlogBundle:Page:contact }
20 requirements:
21 _locale: '%blog.locales%'
22
23 articles:
24 path: /{_locale}/articles
25 defaults: { _controller: RapsysBlogBundle:Page:articleIndex }
26 requirements:
27 _locale: '%blog.locales%'
28
29 articles_article:
30 path: /{_locale}/articles/{_article}
31 defaults: { _controller: RapsysBlogBundle:Page:articleRead }
32 requirements:
33 _locale: '%blog.locales%'
34 #_article: '\d+'
35 _article: '[a-z0-9-]+'
36
37 keywords:
38 path: /{_locale}/keywords
39 defaults: { _controller: RapsysBlogBundle:Page:keywordIndex }
40 requirements:
41 _locale: '%blog.locales%'
42
43 keywords_keyword:
44 path: /{_locale}/keywords/{_keyword}
45 defaults: { _controller: RapsysBlogBundle:Page:keywordRead }
46 requirements:
47 _locale: '%blog.locales%'
48 _keyword: '[a-z0-9-]+'