aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-12-13 21:10:27 -0600
committermat <github@matdoes.dev>2022-12-13 21:10:27 -0600
commit1b5036220b09c9de50a5bb55852ad2bcc370a6f4 (patch)
treed1ec318f36494c29085b60711f20f7de06dd2a5d /src/index.ts
parentc951bfb32401ee7e21e256bd391230a1cd4278b7 (diff)
downloadskyblock-api-1b5036220b09c9de50a5bb55852ad2bcc370a6f4.tar.gz
skyblock-api-1b5036220b09c9de50a5bb55852ad2bcc370a6f4.tar.bz2
skyblock-api-1b5036220b09c9de50a5bb55852ad2bcc370a6f4.zip
temporarily make it log request headers
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index 9a14d0b..298dee3 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -19,6 +19,7 @@ const limiter = rateLimit({
windowMs: 60 * 1000 * 5,
max: 200,
skip: (req: express.Request) => {
+ console.log(req.headers)
return req.headers.key === process.env.key
},
keyGenerator: (req: express.Request) => {