Skip to content

Commit

Permalink
Merge branch 'EdJoPaTo-webgui-resolve-node_modules'
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Aug 26, 2018
2 parents f3dabce + 02d91e1 commit a341391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,12 @@ if (config.disableWeb) {
res.redirect(301, '/ui');
});
app.use('/ui', express.static(path.join(__dirname, '/ui')));
app.use('/node_modules', express.static(path.join(__dirname, '/node_modules')));
app.use('/services.json', express.static(path.join(__dirname, '/services.json')));

module.paths.forEach(folder => {
app.use('/node_modules', express.static(folder));
});

app.get('/topics', (req, res) => {
log.info('http > topics');
res.send(JSON.stringify(topics));
Expand Down

0 comments on commit a341391

Please sign in to comment.