mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 12:50:01 -04:00
uv now local because of ^
This commit is contained in:
parent
1cbe09268e
commit
ed5a358297
19 changed files with 966 additions and 6 deletions
|
@ -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 "@titaniumnetwork-dev/ultraviolet";
|
||||
import { uvPath } from "../bin/lib/index.cjs";
|
||||
|
||||
const config = JSON.parse(
|
||||
await readFile(new URL("./config.json", import.meta.url))
|
||||
|
@ -24,10 +24,6 @@ router = express.Router(),
|
|||
bare = createBareServer("/bare/"),
|
||||
rh = createRammerhead();
|
||||
|
||||
app.use("/uv/", express.static(uvPath));
|
||||
app.use("/epoxy/", express.static(epoxyPath));
|
||||
app.use("/baremux/", express.static(baremuxPath));
|
||||
|
||||
app.get("/baremux/bare.cjs", (req, res) => {
|
||||
res.setHeader("Content-Type", "application/javascript");
|
||||
res.sendFile(path.join(baremuxPath, "bare.cjs"));
|
||||
|
@ -120,6 +116,9 @@ router.get("/", async (req, res) =>
|
|||
|
||||
app.use(router);
|
||||
app.use(express.static(path.join(__dirname, "views")));
|
||||
app.use("/uv/", express.static(uvPath));
|
||||
app.use("/epoxy/", express.static(epoxyPath));
|
||||
app.use("/baremux/", express.static(baremuxPath));
|
||||
|
||||
app.disable("x-powered-by");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue