fix stuff after moving to resources

This commit is contained in:
sky
2025-06-30 03:19:11 -04:00
parent bc03213b0b
commit fa52034fb7
2 changed files with 4 additions and 4 deletions

View File

@ -387,7 +387,7 @@ app.use("/ai", async (req, res, next) => {
next();
}
});
app.use("/", express.static("./selenite", { extensions: ["html"] }));
app.use("/", express.static("./public", { extensions: ["html"] }));
app.use("/data/:id/:file", async (req, res) => {
const id = path.basename(req.params.id);
const file = path.basename(req.params.file);
@ -490,6 +490,6 @@ server.on("upgrade", (request, socket, head) => {
app.use(async (req, res) => {
res
.type("text/html")
.send(await fs.readFile(`./selenite/404.html`))
.send(await fs.readFile(`./public/404.html`))
.status(404);
});