mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
10 lines
222 B
TypeScript
10 lines
222 B
TypeScript
import path from 'path';
|
|
import config from '@/config';
|
|
|
|
export const getUploadedObjectUri = (objectKey: string) => {
|
|
return new URL(
|
|
path.join(config.s3.bucket, objectKey),
|
|
config.s3.endpoint
|
|
).toString();
|
|
};
|