]> Raphaƫl G. Git Repositories - packbundle/blobdiff - config/routes/rapsyspack.yaml
Version 0.5.5
[packbundle] / config / routes / rapsyspack.yaml
index b238403331be504bca4a847020ba143d3d43c999..e471166da87a6de5f77f83cb9ea5c5d0e1c4d709 100644 (file)
@@ -1,6 +1,6 @@
 #Routes configuration
 rapsyspack_captcha:
 #Routes configuration
 rapsyspack_captcha:
-    path: '/captcha/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{equation<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>?jpeg}'
+    path: '/captcha/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{equation<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>}'
     controller: Rapsys\PackBundle\Controller::captcha
     methods: GET
 
     controller: Rapsys\PackBundle\Controller::captcha
     methods: GET
 
@@ -8,13 +8,18 @@ rapsyspack_css:
     path: '/bundles/rapsyspack/pack/css/{file<[a-zA-Z0-9]+>}.{!_format<css>?css}'
     methods: GET
 
     path: '/bundles/rapsyspack/pack/css/{file<[a-zA-Z0-9]+>}.{!_format<css>?css}'
     methods: GET
 
+rapsyspack_download:
+    path: '/download/{hash<[a-zA-Z0-9=_-]+>}/{path<[a-zA-Z0-9=_-]+>}'
+    controller: Rapsys\PackBundle\Controller::download
+    methods: GET
+
 rapsyspack_facebook:
 rapsyspack_facebook:
-    path: '/facebook/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{path<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>?jpeg}'
+    path: '/facebook/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{path<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>}'
     controller: Rapsys\PackBundle\Controller::facebook
     methods: GET
 
 rapsyspack_img:
     controller: Rapsys\PackBundle\Controller::facebook
     methods: GET
 
 rapsyspack_img:
-    path: '/bundles/rapsyspack/pack/img/{file<[a-zA-Z0-9]+>}.{!_format<(jpeg|png|webp)>?jpeg}'
+    path: '/bundles/rapsyspack/pack/img/{file<[a-zA-Z0-9]+>}.{!_format<(jpeg|png|webp)>}'
     methods: GET
 
 rapsyspack_js:
     methods: GET
 
 rapsyspack_js:
@@ -22,16 +27,17 @@ rapsyspack_js:
     methods: GET
 
 rapsyspack_map:
     methods: GET
 
 rapsyspack_map:
-    path: '/map/{hash<[a-zA-Z0-9=_-]+>}/{latitude<\d+(\.?\d+)>},{longitude<\d+(\.?\d+)>}-{zoom<\d+>}-{width<\d+>}x{height<\d+>}.{!_format<(jpeg|png|webp)>?jpeg}'
+    path: '/map/{hash<[a-zA-Z0-9=_-]+>}/{latitude<\d+(\.?\d+)>},{longitude<\d+(\.?\d+)>}-{zoom<\d+>}-{width<\d+>}x{height<\d+>}.{!_format<(jpeg|png|webp)>}'
     controller: Rapsys\PackBundle\Controller::map
     methods: GET
 
 rapsyspack_multi:
     controller: Rapsys\PackBundle\Controller::map
     methods: GET
 
 rapsyspack_multi:
-    path: '/multi/{hash<[a-zA-Z0-9=_-]+>}/{coordinate<\d+(\.\d+)?,\d+(\.\d+)?(-\d+(\.\d+)?,\d+(\.\d+)?)+>}-{zoom<\d+>}-{width<\d+>}x{height<\d+>}.{!_format<(jpeg|png|webp)>?jpeg}'
+    path: '/multi/{hash<[a-zA-Z0-9=_-]+>}/{coordinate<\d+(\.\d+)?,\d+(\.\d+)?(-\d+(\.\d+)?,\d+(\.\d+)?)+>}-{zoom<\d+>}-{width<\d+>}x{height<\d+>}.{!_format<(jpeg|png|webp)>}'
     controller: Rapsys\PackBundle\Controller::multi
     methods: GET
 
 rapsyspack_thumb:
     controller: Rapsys\PackBundle\Controller::multi
     methods: GET
 
 rapsyspack_thumb:
+    #TODO: remove default _format when a solution is found
     path: '/thumb/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{path<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>?jpeg}'
     controller: Rapsys\PackBundle\Controller::thumb
     methods: GET
     path: '/thumb/{hash<[a-zA-Z0-9=_-]+>}/{width<\d+>}/{height<\d+>}/{path<[a-zA-Z0-9=_-]+>}.{!_format<(jpeg|png|webp)>?jpeg}'
     controller: Rapsys\PackBundle\Controller::thumb
     methods: GET