diff --git a/api/index.js b/api/index.js index 90449b1..1165be8 100644 --- a/api/index.js +++ b/api/index.js @@ -33,13 +33,13 @@ app.use(helmet()); // Server app.listen(port, () => console.log(`App listening on port ${port}`)); -// Auth guard +// TEMP Auth guard const authguard = (req, res, next) => { - if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) { - return res.status(401).send('The API key is either missing or incorrect.'); - } else { + // if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) { + // return res.status(401).send('The API key is either missing or incorrect.'); + // } else { next(); - } + // } } // Routing