release: v0.17.0 (#677)
See CHANGELOG.md, section [0.17.0] — 2026-09-23.
This commit is contained in:
12
lib/urls.ts
12
lib/urls.ts
@@ -107,6 +107,18 @@ export function downloadUrl(albumId: string, assetId: string): string {
|
||||
return `/api/download/${encodeAssetId(albumId)}/${encodeAssetId(assetId)}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* The endpoint that streams an album (or a selection of its assets) as a ZIP.
|
||||
*
|
||||
* Carries only the album: the route re-checks the allowlist, the `download`
|
||||
* opt-in and every password gate, exactly like the single-asset download. A
|
||||
* `GET` returns the whole album; a `POST` with `{ "assets": [<token>, …] }`
|
||||
* returns just those assets.
|
||||
*/
|
||||
export function archiveUrl(albumId: string): string {
|
||||
return `/api/download/${encodeAssetId(albumId)}/archive`;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Immich asset description, trimmed, for use as image alt text.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user