Add bypass

This commit is contained in:
Christopher Cookman 2026-01-25 15:01:51 -07:00
parent 0a5b3775a7
commit 16a16d643f

View file

@ -38,6 +38,9 @@ app.use((req, res, next) => {
})
global.auth = (req, res, next) => {
if(!process.env.API_KEY) {
return next(); // No API key set, allow all requests
}
if (process.env.API_KEY && req.headers['Authorization'] === process.env.API_KEY) {
return next();
}