Removed temp authguard measure, will need to refactor it anyays
This commit is contained in:
10
api/index.js
10
api/index.js
@@ -33,13 +33,13 @@ app.use(helmet());
|
|||||||
// Server
|
// Server
|
||||||
app.listen(port, () => console.log(`App listening on port ${port}`));
|
app.listen(port, () => console.log(`App listening on port ${port}`));
|
||||||
|
|
||||||
// Auth guard
|
// TEMP Auth guard
|
||||||
const authguard = (req, res, next) => {
|
const authguard = (req, res, next) => {
|
||||||
if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) {
|
// if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) {
|
||||||
return res.status(401).send('The API key is either missing or incorrect.');
|
// return res.status(401).send('The API key is either missing or incorrect.');
|
||||||
} else {
|
// } else {
|
||||||
next();
|
next();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Routing
|
// Routing
|
||||||
|
|||||||
Reference in New Issue
Block a user