From a9b73d3ea50d97b601396fab26596869a05f2f75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 15 Sep 2021 17:00:24 +0200 Subject: [PATCH] Add map controller routes --- Resources/config/routes/rapsys_pack.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Resources/config/routes/rapsys_pack.yaml 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 -- 2.41.1