16 lines
291 B
TypeScript
16 lines
291 B
TypeScript
export type StorageRef = {
|
|
provider: "minio";
|
|
bucket: string;
|
|
key: string;
|
|
};
|
|
|
|
export class StorageService {
|
|
createUploadStorageRef(displayName: string): StorageRef {
|
|
return {
|
|
provider: "minio",
|
|
bucket: "raw-assets",
|
|
key: `uploads/${displayName}`,
|
|
};
|
|
}
|
|
}
|