Update docs

This commit is contained in:
Alan Grainger
2024-10-29 19:57:44 +01:00
parent 0d3d6f4989
commit 0ed2ebd5c2
5 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -69,14 +69,14 @@ class Immich {
* Return the image data URL for a photo
*/
photoUrl (key: string, id: string, size?: ImageSize) {
return `${process.env.SERVER_URL}/photo/${key}/${id}` + (size ? `?size=${size}` : '')
return `/photo/${key}/${id}` + (size ? `?size=${size}` : '')
}
/**
* Return the video data URL for a video
*/
videoUrl (key: string, id: string) {
return `${process.env.SERVER_URL}/video/${key}/${id}`
return `/video/${key}/${id}`
}
/**