mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
lint
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user