]> Raphaël G. Git Repositories - packbundle/commitdiff
Add download route
authorRaphaël Gertz <git@rapsys.eu>
Mon, 13 Oct 2025 13:28:22 +0000 (15:28 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 13 Oct 2025 13:28:22 +0000 (15:28 +0200)
config/routes/rapsyspack.yaml

index f23660bc6aa09886bdddce68915bc13c14ae79f9..e471166da87a6de5f77f83cb9ea5c5d0e1c4d709 100644 (file)
@@ -8,6 +8,11 @@ rapsyspack_css:
     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:
     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