Update index.ts

This commit is contained in:
2025-10-27 14:24:00 +08:00
parent aa1634efb0
commit eb43edb5ca
+3
View File
@@ -22,6 +22,8 @@ interface PhotoMetadata {
original_photo: string
edited_photo: string
thumbnail: string
thumbnail_edited: string
exif: Record<string, string>
[key: string]: any // Custom properties
}
@@ -180,6 +182,7 @@ export const app = new Elysia()
original_photo: Bun.file(originalPath).name!,
edited_photo: Bun.file(editedPath).name!,
thumbnail: Bun.file(thumbnailPath).name!,
thumbnail_edited: Bun.file(editedThumb).name!,
}
// 5. Save updated metadata