fix stuff after moving to resources
This commit is contained in:
4
index.js
4
index.js
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user