From 4ab24d02b95674f0b015474d9cd54fb87b6b38ae Mon Sep 17 00:00:00 2001 From: mariyachanniwala Date: Mon, 4 Jun 2018 18:24:28 +0000 Subject: [PATCH] Download webui logs functionality added! --- br-webui/_includes/header.liquid | 7 ++++++- br-webui/index.js | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/br-webui/_includes/header.liquid b/br-webui/_includes/header.liquid index b9f8c749..e9de9699 100644 --- a/br-webui/_includes/header.liquid +++ b/br-webui/_includes/header.liquid @@ -42,9 +42,14 @@ -
\ No newline at end of file +
diff --git a/br-webui/index.js b/br-webui/index.js index 29cb0143..2ffdaee6 100644 --- a/br-webui/index.js +++ b/br-webui/index.js @@ -9,6 +9,7 @@ var env = process.env logger.log('ENVIRONMENT', process.env) logger.log('COMPANION_DIR', process.env.COMPANION_DIR) app.use(express.static('public')); +app.use('/webui.log', express.static('/home/pi/.webui.log')); app.use('/js', express.static(__dirname + '/node_modules/bootstrap/dist/js')); // redirect bootstrap JS app.use('/js', express.static(__dirname + '/node_modules/jquery/dist')); // redirect JS jQuery app.use('/font-awesome', express.static(__dirname + '/node_modules/font-awesome')); // redirect JS jQuery