]> Raphaël G. Git Repositories - airbundle/commitdiff
Set location, dance and user as optional in session view route
authorRaphaël Gertz <git@rapsys.eu>
Wed, 31 Jan 2024 22:16:53 +0000 (23:16 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 31 Jan 2024 22:16:53 +0000 (23:16 +0100)
Resources/config/routes/rapsys_air.yaml

index 05123d3b21a9fee7569393cd05639fa48a155c25..ca01a8c76afe0ec759106dbd7197569079870791 100644 (file)
@@ -137,8 +137,8 @@ rapsys_air_session_tangoargentin:
 
 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