mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 23:32:58 +00:00
Update server/app.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -259,8 +259,8 @@ app.get('/print/:id', asyncHandler(async (req, res, next)=>{
|
|||||||
return next();
|
return next();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const localEnvironments = config.get('local_environments');
|
|
||||||
const nodeEnv = config.get('node_env');
|
const nodeEnv = config.get('node_env');
|
||||||
|
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
|
||||||
// Login
|
// Login
|
||||||
app.post('/login', (req, res)=>{
|
app.post('/login', (req, res)=>{
|
||||||
// Local only
|
// Local only
|
||||||
|
|||||||
Reference in New Issue
Block a user