From 9ef91415139291a3c590ff8ed708d66f7b3af8a6 Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Sat, 10 Dec 2022 23:17:19 -0500 Subject: [PATCH] lint --- server/api/GamesAPI.js | 2 +- server/modules/ServerBootstrapper.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/api/GamesAPI.js b/server/api/GamesAPI.js index c6aa657..5a800fd 100644 --- a/server/api/GamesAPI.js +++ b/server/api/GamesAPI.js @@ -11,7 +11,7 @@ const gameManager = new GameManager().getInstance(); const gameCreationLimit = process.env.NODE_ENV.trim() === 'production' ? 20 - : 1000 + : 1000; const gameEndpointLimiter = rateLimit({ windowMs: 600000, diff --git a/server/modules/ServerBootstrapper.js b/server/modules/ServerBootstrapper.js index 0123ed0..1eb81f3 100644 --- a/server/modules/ServerBootstrapper.js +++ b/server/modules/ServerBootstrapper.js @@ -94,13 +94,12 @@ const ServerBootstrapper = { }, establishRouting: (app, express) => { - const standardRateLimit = rateLimit({ windowMs: 60000, max: 100, standardHeaders: true, legacyHeaders: false - }) + }); /* api endpoints */ const games = require('../api/GamesAPI');