Update docs
This commit is contained in:
parent
234a521058
commit
d05296509d
@ -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) {
|
async gallery (res: Response, share: SharedLink, openItem?: number) {
|
||||||
const items = []
|
const items = []
|
||||||
for (const asset of share.assets) {
|
for (const asset of share.assets) {
|
||||||
|
Loading…
Reference in New Issue
Block a user