0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Update server/app.js

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
G.Ambatte
2022-04-13 14:37:06 +12:00
committed by GitHub
parent 0999125678
commit 6fdd415fcb

View File

@@ -259,8 +259,8 @@ app.get('/print/:id', asyncHandler(async (req, res, next)=>{
return next();
}));
const localEnvironments = config.get('local_environments');
const nodeEnv = config.get('node_env');
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
// Login
app.post('/login', (req, res)=>{
// Local only