Skip to content

Commit

Permalink
please please PLEASE fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
Scaratech authored Jul 10, 2024
1 parent 18f0cba commit ca314d8
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 ca314d8

Please sign in to comment.