From: Raphaƫl Gertz Date: Wed, 15 Sep 2021 15:00:24 +0000 (+0200) Subject: Add map controller routes X-Git-Tag: 0.2.0 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/a9b73d3ea50d97b601396fab26596869a05f2f75?hp=b31612d28cf2a5617667dd9dae62379c90dbaf1c Add map controller routes --- diff --git a/Resources/config/routes/rapsys_pack.yaml b/Resources/config/routes/rapsys_pack.yaml new file mode 100644 index 0000000..77f8030 --- /dev/null +++ b/Resources/config/routes/rapsys_pack.yaml @@ -0,0 +1,10 @@ +#Routes configuration +rapsys_pack_map: + path: '/map/{hash<[a-zA-Z0-9=_-]+>}/{updated<\d+>}/{latitude<\d+\.?\d*>}/{longitude<\d+\.?\d*>}/{zoom<\d+>?17}/{width<\d+>?640}/{height<\d+>?640}.{_format?jpeg}' + controller: Rapsys\PackBundle\Controller\MapController::map + methods: GET + +rapsys_pack_multimap: + path: '/multimap/{hash<[a-zA-Z0-9=_-]+>}/{updated<\d+>}/{latitude<\d+\.?\d*>}/{longitude<\d+\.?\d*>}/{coordinates<\d+(\.\d+)*,\d+(\.\d+)*(-\d+(\.\d+)*,\d+(\.\d+)*)*>}/{zoom<\d+>?15}/{width<\d+>?640}/{height<\d+>?640}.{_format?jpeg}' + controller: Rapsys\PackBundle\Controller\MapController::multimap + methods: GET