Add a first cut at an express-based backend

This commit is contained in:
Michael Wolf
2025-11-17 10:58:54 -06:00
parent c346a70cce
commit 1a13fd0909
20 changed files with 2102 additions and 0 deletions

40
express/content-types.ts Normal file
View 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 };