Skip to content

Commit

Permalink
Merge pull request #428 from metrico/fix_427
Browse files Browse the repository at this point in the history
fix: using dirname on view/index.html path #427
  • Loading branch information
akvlad authored Jan 10, 2024
2 parents 63c1750 + baf4e9d commit db752b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qryn_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit db752b5

Please sign in to comment.