diff options
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 |