summaryrefslogtreecommitdiff
path: root/src/routers/tmwa/middlewares/server.js
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-02-14 12:18:00 -0500
committergumi <git@gumi.ca>2020-03-02 15:37:17 -0500
commit2c25f53ddf418bdedd94c6142b03c80e49fc584d (patch)
treec15c45c16b7b649fb267241ffe0fe90aacf6fae5 /src/routers/tmwa/middlewares/server.js
parent872288426090839f2f23e60187a58ee51d6fe4ea (diff)
downloadapi-2c25f53ddf418bdedd94c6142b03c80e49fc584d.tar.gz
api-2c25f53ddf418bdedd94c6142b03c80e49fc584d.tar.bz2
api-2c25f53ddf418bdedd94c6142b03c80e49fc584d.tar.xz
api-2c25f53ddf418bdedd94c6142b03c80e49fc584d.zip
add support for Vault + major refactor
Diffstat (limited to 'src/routers/tmwa/middlewares/server.js')
-rw-r--r--src/routers/tmwa/middlewares/server.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routers/tmwa/middlewares/server.js b/src/routers/tmwa/middlewares/server.js
index 261ecfd..51c293a 100644
--- a/src/routers/tmwa/middlewares/server.js
+++ b/src/routers/tmwa/middlewares/server.js
@@ -8,4 +8,5 @@ module.exports = exports = (req, res, next) => {
playersOnline: req.app.locals.tmwa.num_online,
serverStatus: req.app.locals.tmwa.status,
});
+ req.app.locals.cooldown(req, 500);
};