mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
15 lines
390 B
TypeScript
15 lines
390 B
TypeScript
import path from 'path';
|
|
|
|
export const PDF_FILE_SUB_DIR = '/pdf';
|
|
export const PDF_FILE_EXPIRE_IN = 40; // ms
|
|
|
|
export const getPdfFilesStorageDir = (filename: string) => {
|
|
return path.join(PDF_FILE_SUB_DIR, filename);
|
|
};
|
|
|
|
export const getPdfFilePath = (filename: string) => {
|
|
const storageDir = getPdfFilesStorageDir(filename);
|
|
|
|
return path.join(global.__storage_dir, storageDir);
|
|
};
|