restructure directories
* set log level based on env
This commit is contained in:
@@ -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';
|
||||
}
|
||||
Reference in New Issue
Block a user