Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Jul 10, 2024
2 parents fb07184 + ca314d8 commit 1cbe092
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ 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"));
Expand Down Expand Up @@ -116,9 +120,6 @@ 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");

Expand Down

0 comments on commit 1cbe092

Please sign in to comment.