From d4b71f8dab86e95cd50f808fdbd2155f73e84469 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 20 Feb 2021 22:51:15 -0600 Subject: add debug stuff --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index c0047ad..adeab57 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,6 +3,9 @@ import express from 'express' const app = express() +export const debug = false + + app.use((req, res, next) => { if (process.env.key && req.headers.key !== process.env.key) // if a key is set in process.env and the header doesn't match return an error -- cgit