diff --git a/src/render.ts b/src/render.ts index f428ee1..b072f03 100644 --- a/src/render.ts +++ b/src/render.ts @@ -17,6 +17,13 @@ class Render { } } + /** + * Render a gallery page for a given SharedLink, using EJS and lightGallery. + * + * @param res - ExpressJS Response + * @param share - Immich `shared-link` containing the assets to show in the gallery + * @param [openItem] - Immediately open a lightbox to the Nth item when the gallery loads + */ async gallery (res: Response, share: SharedLink, openItem?: number) { const items = [] for (const asset of share.assets) {