mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
sending 404 early to avoid logging all the query params
This commit is contained in:
parent
f7c630f3da
commit
6a237dfd64
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue