* Add map object `extToMimes` to map file extensions to MIME types.

This commit is contained in:
Derrick Hammer 2023-04-09 19:45:13 -04:00
parent 73a64dfe22
commit d0325ed8b5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 10 additions and 0 deletions

10
src/mimes.ts Normal file
View File

@ -0,0 +1,10 @@
const extToMimes = new Map(
Object.entries({
html: "text/html",
xhtml: "application/xhtml+xml",
xml: "application/xml",
})
);
Object.freeze(extToMimes);
export default extToMimes;