From: Raphaƫl Gertz Date: Thu, 14 Nov 2019 23:58:12 +0000 (+0100) Subject: Fix controller naming X-Git-Url: https://git.rapsys.eu/recipe/commitdiff_plain/6c937accf6bbe3c7d0b92c72798f33197f9a096f?ds=sidebyside Fix controller naming Add methods --- diff --git a/rapsys/airbundle/master/config/routes/rapsys_air.yaml b/rapsys/airbundle/master/config/routes/rapsys_air.yaml index ac4d4b8..615b709 100644 --- a/rapsys/airbundle/master/config/routes/rapsys_air.yaml +++ b/rapsys/airbundle/master/config/routes/rapsys_air.yaml @@ -1,17 +1,21 @@ rapsys_air_homepage: - path: / - defaults: { _controller: 'Rapsys\AirBundle\Controller\DefaultController::index' } - -rapsys_air_admin: - path: /admin - defaults: { _controller: 'Rapsys\AirBundle\Controller\DefaultController::admin' } + path: / + controller: Rapsys\AirBundle\Controller\DefaultController::index + methods: GET rapsys_air_contact: - path: /contact - defaults: { _controller: 'Rapsys\AirBundle\Controller\DefaultController::contact' } + path: /contact + controller: Rapsys\AirBundle\Controller\DefaultController::contact + methods: GET|POST + +rapsys_air_admin: + path: /admin + controller: Rapsys\AirBundle\Controller\DefaultController::admin + methods: GET rapsys_air_session: path: /admin/session/{id} - defaults: { _controller: 'Rapsys\AirBundle\Controller\DefaultController::session' } + controller: Rapsys\AirBundle\Controller\DefaultController::session requirements: id: '\d+' + methods: GET