mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
sending 404 early to avoid logging all the query params
This commit is contained in:
parent
f7c630f3da
commit
6a237dfd64
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue