restructure directories

* set log level based on env
This commit is contained in:
Philipinho
2024-06-09 15:57:52 +01:00
parent 2e61fb7c11
commit d4eefa48a8
49 changed files with 124 additions and 82 deletions
@@ -0,0 +1,7 @@
import * as mime from 'mime-types';
import * as path from 'node:path';
export function getMimeType(filePath: string): string {
const ext = path.extname(filePath);
return mime.contentType(ext) || 'application/octet-stream';
}