diff --git a/backend/__tests__/routes/galleryProtectedVideoUrls.test.js b/backend/__tests__/routes/galleryProtectedVideoUrls.test.js new file mode 100644 index 00000000..e92a414d --- /dev/null +++ b/backend/__tests__/routes/galleryProtectedVideoUrls.test.js @@ -0,0 +1,163 @@ +/** + * Videos under enhanced/maximum image protection (#1370). + * + * Both halves of the video path used to be routed through /api/secure-images + * once an event left `standard` protection, and neither half could carry a + * video: + * + * 1. galleryQueryService emitted `/api/secure-images/{slug}/secure/{id}/{{token}}` + * as the video's `url`. The lightbox drops that straight into a