Add a first cut at an express-based backend
This commit is contained in:
40
express/content-types.ts
Normal file
40
express/content-types.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Extensible } from "./interfaces";
|
||||
|
||||
export type ContentType = string;
|
||||
|
||||
// FIXME: Fill this out (get an AI to do it)
|
||||
|
||||
const contentTypes = {
|
||||
text: {
|
||||
plain: "text/plain",
|
||||
html: "text/html",
|
||||
css: "text/css",
|
||||
javascript: "text/javascript",
|
||||
xml: "text/xml",
|
||||
},
|
||||
image: {
|
||||
jpeg: "image/jpeg",
|
||||
png: "image/png",
|
||||
gif: "image/gif",
|
||||
svgPlusXml: "image/svg+xml",
|
||||
webp: "image/webp",
|
||||
},
|
||||
audio: {
|
||||
mpeg: "audio/mpeg",
|
||||
wav: "audio/wav",
|
||||
},
|
||||
video: {
|
||||
mp4: "video/mp4",
|
||||
webm: "video/webm",
|
||||
xMsvideo: "video/x-msvideo",
|
||||
},
|
||||
application: {
|
||||
json: "application/json",
|
||||
pdf: "application/pdf",
|
||||
zip: "application/zip",
|
||||
xWwwFormUrlencoded: "x-www-form-urlencoded",
|
||||
octetStream: "octet-stream",
|
||||
},
|
||||
};
|
||||
|
||||
export { contentTypes };
|
||||
Reference in New Issue
Block a user