]> Raphaël G. Git Repositories - packbundle/commitdiff
Add map controller routes 0.2.0
authorRaphaël Gertz <git@rapsys.eu>
Wed, 15 Sep 2021 15:00:24 +0000 (17:00 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 15 Sep 2021 15:00:24 +0000 (17:00 +0200)
Resources/config/routes/rapsys_pack.yaml [new file with mode: 0644]

diff --git a/Resources/config/routes/rapsys_pack.yaml b/Resources/config/routes/rapsys_pack.yaml
new file mode 100644 (file)
index 0000000..77f8030
--- /dev/null
@@ -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