X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/5602a0bbef1347394dac32d1e41c26cfabdc2c64..eff5f0cf9458e36540ec456d37483d7be55d9b94:/Resources/config/routes/rapsys_air.yaml diff --git a/Resources/config/routes/rapsys_air.yaml b/Resources/config/routes/rapsys_air.yaml index 3549da5..ec209fd 100644 --- a/Resources/config/routes/rapsys_air.yaml +++ b/Resources/config/routes/rapsys_air.yaml @@ -93,13 +93,6 @@ rapsys_air_terms_of_service: controller: Rapsys\AirBundle\Controller\DefaultController::termsOfService methods: GET -rapsys_air_dispute: - path: - en_gb: '/en/dispute' - fr_fr: '/contestation' - controller: Rapsys\AirBundle\Controller\DefaultController::dispute - methods: GET|POST - rapsys_air_location: path: en_gb: '/en/location' @@ -130,16 +123,15 @@ 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 rapsys_air_session_view: path: - en_gb: '/en/session/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}' - fr_fr: '/seance/{id<\d+>}/{location<[\w-]+>}/{dance<[\w-]*>?}/{user<[\w-]*>?}' + en_gb: '/en/session/{id<\d+>}/{location<[\w-]+>?}/{dance<[\w-]*>?}/{user<[\w-]*>?}' + fr_fr: '/seance/{id<\d+>}/{location<[\w-]+>?}/{dance<[\w-]*>?}/{user<[\w-]*>?}' controller: Rapsys\AirBundle\Controller\SessionController::view methods: GET|POST @@ -168,16 +160,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