Add UI route for testing
This commit is contained in:
1 parent
b9f2517696
commit
e8937a285c
2 files changed
+12
-2
No files matched your search
+10
-2
@@ -272,6 +272,16 @@ app.get('/print/:id', asyncHandler(async (req, res, next)=>{
|
||||
return next();
|
||||
}));
|
||||
|
||||
//UI Page
|
||||
app.get('/ui', asyncHandler(async (req, res, next)=>{
|
||||
const brew = {
|
||||
title : 'UI PAGE'
|
||||
};
|
||||
req.brew = brew;
|
||||
return next();
|
||||
}));
|
||||
|
||||
|
||||
const nodeEnv = config.get('node_env');
|
||||
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
|
||||
// Local only
|
||||
@@ -286,8 +296,6 @@ if(isLocalEnvironment){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Render the page
|
||||
const templateFn = require('./../client/template.js');
|
||||
app.use((req, res)=>{
|
||||
|
||||
Reference in new issue
Block a user