X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/cb898714d95a386fbd23c8d6f2292fc33f330a74..51c618d74835a86dacbb190ef00c6a2178e7a5eb:/config/routes/rapsyspack.yaml diff --git a/config/routes/rapsyspack.yaml b/config/routes/rapsyspack.yaml new file mode 100644 index 0000000..aa0a953 --- /dev/null +++ b/config/routes/rapsyspack.yaml @@ -0,0 +1,26 @@ +#Routes configuration +rapsyspack_captcha: + path: '/captcha/{hash<[a-zA-Z0-9=_-]+>}/{updated<\d+>}/{equation<[a-zA-Z0-9=_-]+>}/{width<\d+>?120}/{height<\d+>?36}.{!_format?jpeg}' + controller: Rapsys\PackBundle\Controller\ImageController::captcha + methods: GET + +#TODO: replace this url with a redirection route ??? +#XXX: we don't need the mtime, maybe we can drop it in this redirect instead of apache ? +rapsyspack_facebook: + path: '/bundles/rapsyspack/facebook/{mtime<\d+>}{path}.{!_format?jpeg}' + methods: GET + +rapsyspack_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 + +rapsyspack_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 + +rapsyspack_thumb: + path: '/thumb/{hash<[a-zA-Z0-9=_-]+>}/{updated<\d+>}/{path<[a-zA-Z0-9=_-]+>}/{width<\d+>?640}/{height<\d+>?640}.{!_format?jpeg}' + controller: Rapsys\PackBundle\Controller\ImageController::thumb + methods: GET