]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/routes/rapsys_user.yaml
Add requirement
[userbundle] / Resources / config / routes / rapsys_user.yaml
1 rapsys_user_confirm:
2 path: /confirm/{hash}/{mail}
3 controller: Rapsys\UserBundle\Controller\DefaultController::registerMail
4 requirements:
5 hash: '[a-zA-Z0-9=_-]+'
6 mail: '[a-zA-Z0-9=_-]+'
7 methods: GET|POST
8
9 rapsys_user_login:
10 path: /login/{hash}/{mail}
11 controller: Rapsys\UserBundle\Controller\DefaultController::login
12 defaults:
13 hash: ~
14 mail: ~
15 requirements:
16 hash: '[a-zA-Z0-9=_-]+'
17 mail: '[a-zA-Z0-9=_-]+'
18 methods: GET|POST
19
20 rapsys_user_logout:
21 path: /logout
22 methods: GET
23
24 rapsys_user_recover:
25 path: /recover/{hash}/{pass}/{mail}
26 controller: Rapsys\UserBundle\Controller\DefaultController::recover
27 defaults:
28 hash: ~
29 pass: ~
30 mail: ~
31 requirements:
32 hash: '[a-zA-Z0-9=_-]+'
33 pass: '[a-zA-Z0-9=_-]+'
34 mail: '[a-zA-Z0-9=_-]+'
35 methods: GET|POST
36
37 rapsys_user_register:
38 path: /register/{hash}/{field}/{mail}
39 controller: Rapsys\UserBundle\Controller\DefaultController::register
40 defaults:
41 hash: ~
42 field: ~
43 mail: ~
44 requirements:
45 hash: '[a-zA-Z0-9=_-]+'
46 field: '[a-zA-Z0-9=_-]+'
47 mail: '[a-zA-Z0-9=_-]+'
48 methods: GET|POST
49
50 rapsys_user_edit:
51 path: /user/{hash}/{mail}
52 controller: Rapsys\UserBundle\Controller\DefaultController::edit
53 requirements:
54 hash: '[a-zA-Z0-9=_-]+'
55 mail: '[a-zA-Z0-9=_-]+'
56 methods: GET|POST
57
58 rapsys_user_index:
59 path: /
60 methods: GET