28 lines
861 B
JavaScript
28 lines
861 B
JavaScript
const types = new Map();
|
|
types.set("css", "text/css");
|
|
types.set("html", "text/html");
|
|
types.set("txt", "text/plain");
|
|
types.set("xml", "text/xml");
|
|
types.set("js", "text/javascript");
|
|
types.set("md", "text/markdown");
|
|
types.set("gmi", "text/gemini");
|
|
types.set("png", "image/png");
|
|
types.set("jpg", "image/jpeg");
|
|
types.set("jpeg", "image/jpeg");
|
|
types.set("gif", "image/gif");
|
|
types.set("apng", "image/png");
|
|
types.set("svg", "image/svg");
|
|
types.set("webp", "image/webp");
|
|
types.set("ico", "image/x-icon");
|
|
types.set("ogg", "audio/ogg");
|
|
types.set("opus", "audio/ogg");
|
|
types.set("mp3", "audio/mp3");
|
|
types.set("mkv", "video/mkv");
|
|
types.set("mp4", "video/mp4");
|
|
types.set("mov", "video/quicktime");
|
|
types.set("pdf", "application/pdf");
|
|
types.set("json", "application/json");
|
|
types.set("zip", "application/zip");
|
|
|
|
module.exports = types;
|
|
|