sending 404 early to avoid logging all the query params

This commit is contained in:
Miodec 2022-03-11 23:30:03 +01:00
parent f7c630f3da
commit 6a237dfd64

View file

@ -30,6 +30,10 @@ const API_ROUTE_MAP = {
function addApiRoutes(app: Application): void {
let requestsProcessed = 0;
app.get("/leaderboard", (_req, res) => {
res.sendStatus(404);
});
addSwaggerMiddlewares(app);
app.use(