v2 #1

Merged
sky merged 13 commits from development into main 2025-10-26 12:54:21 -04:00
20 changed files with 1157 additions and 1295 deletions
Showing only changes of commit 1bb39463e4 - Show all commits

View File

@ -22,6 +22,14 @@ const __dirname = dirname(__filename);
const port = process.env.PORT || 3000;
const app = express();
// why the fuck does this have to exist?
app.use("/resources/semag/hotline-miami/", (req,res,next) => {
if(req.method == "HEAD") {
req.socket.destroy();
}
next();
});
app.use(compression());
app.use(cookieParser());
app.use(express.json({ limit: "10mb" }));
@ -350,4 +358,4 @@ app.use(async (req, res) => {
.type("text/html")
.send(await fs.readFile(`./public/404.html`))
.status(404);
});
});