diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..8ff4b74 --- /dev/null +++ b/index.ts @@ -0,0 +1,172 @@ +import * as http from "http"; +import * as https from "https"; +import * as fs from "fs"; +import * as path from "path"; + +import express from "express"; +import * as escapeHTML from "escape-html"; +import { ServerOptions } from "https"; + +const app = express(); + +let httpPort = 80; + +const htmlTop = ` + +
+ + ++ This site hosts code samples + for MDN Web Docs that require server assistance to operate, such as examples for WebSocket, + WebRTC, and other APIs. +
+