diff --git a/qryn_node.js b/qryn_node.js index 3c0ba8be..df978825 100755 --- a/qryn_node.js +++ b/qryn_node.js @@ -438,7 +438,7 @@ let fastify = require('fastify')({ root: path.join(__dirname, 'view'), prefix: '/' }) - const idx = fs.readFileSync('view/index.html', 'utf8') + const idx = fs.readFileSync(path.join(__dirname, 'view/index.html'), 'utf8') for (const fakePath of ['/plugins', '/users', '/datasources', '/datasources/:ds']) { fastify.get(fakePath, (req, reply) =>