mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor(server): download file (#1512)
* refactor(server): download file * chore: generate open-api and remove unused refs * chore(server): tests * chore: remove unused code
This commit is contained in:
1
server/libs/domain/src/storage/index.ts
Normal file
1
server/libs/domain/src/storage/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './storage.repository';
|
||||
13
server/libs/domain/src/storage/storage.repository.ts
Normal file
13
server/libs/domain/src/storage/storage.repository.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ReadStream } from 'fs';
|
||||
|
||||
export interface ImmichReadStream {
|
||||
stream: ReadStream;
|
||||
type: string;
|
||||
length: number;
|
||||
}
|
||||
|
||||
export const IStorageRepository = 'IStorageRepository';
|
||||
|
||||
export interface IStorageRepository {
|
||||
createReadStream(filepath: string, mimeType: string): Promise<ImmichReadStream>;
|
||||
}
|
||||
Reference in New Issue
Block a user