* Add map object `extToMimes` to map file extensions to MIME types.
This commit is contained in:
parent
73a64dfe22
commit
d0325ed8b5
|
@ -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;
|
Reference in New Issue