From bd5a79b1bc48da095aabd20b273a423fbd1ee485 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 24 Oct 2022 07:34:44 +0200 Subject: [PATCH] Move tangoargentin export to json uri Migrate OrganizerController::view to DefaultController::userView Remove organizer class --- Resources/config/routes/rapsys_air.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Resources/config/routes/rapsys_air.yaml b/Resources/config/routes/rapsys_air.yaml index 3549da5..05123d3 100644 --- a/Resources/config/routes/rapsys_air.yaml +++ b/Resources/config/routes/rapsys_air.yaml @@ -130,9 +130,8 @@ rapsys_air_session: rapsys_air_session_tangoargentin: path: - en_gb: '/en/session/tangoargentin' - fr_fr: '/seance/tangoargentin' - format: json + en_gb: '/en/session/tangoargentin.{!_format?json}' + fr_fr: '/seance/tangoargentin.{!_format?json}' controller: Rapsys\AirBundle\Controller\SessionController::tangoargentin methods: GET @@ -168,16 +167,14 @@ rapsys_air_user_view: path: en_gb: '/en/user/{id<\d+>}/{user<[\w-]+>?}' fr_fr: '/utilisateur/{id<\d+>}/{user<[\w-]+>?}' - #TODO: changer pour DefaultController::organizer ou DefaultController::user et dropper cette classe useless - controller: Rapsys\AirBundle\Controller\OrganizerController::view + controller: Rapsys\AirBundle\Controller\DefaultController::userView methods: GET|POST rapsys_air_user_milongaraphael: path: en_gb: '/en/milonga-raphael' fr_fr: '/milonga-raphael' - #TODO: changer pour DefaultController::organizer ou DefaultController::user et dropper cette classe useless - controller: Rapsys\AirBundle\Controller\OrganizerController::view + controller: Rapsys\AirBundle\Controller\DefaultController::userView defaults: # default parameters id: 1 -- 2.41.1