update to uv v2

This commit is contained in:
Percs 2024-07-11 10:35:39 -05:00
parent dd2d9c15e4
commit f92ba67e72
27 changed files with 17 additions and 988 deletions

View file

@ -11,7 +11,7 @@ import { createBareServer } from "@tomphttp/bare-server-node";
import wisp from "wisp-server-node";
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
import { uvPath } from "../bin/lib/index.cjs";
import { uvPath } from "@titaniumnetwork-dev/ultraviolet";
const config = JSON.parse(
await readFile(new URL("./config.json", import.meta.url))
@ -24,11 +24,6 @@ router = express.Router(),
bare = createBareServer("/bare/"),
rh = createRammerhead();
app.get("/baremux/bare.cjs", (req, res) => {
res.setHeader("Content-Type", "application/javascript");
res.sendFile(path.join(baremuxPath, "bare.cjs"));
});
const rammerheadScopes = [
"/rammerhead.js",
"/hammerhead.js",