const Path = require('path');

module.exports = () => ({
  method: 'GET',
  path: '/{path*}',
  handler: function (req, reply) {
    reply.file(Path.join(__dirname, 'public', req.params.path));
  }
});

@@ -146,12 +146,15 @@
 ath.
-join
+resolve
 (__d
@@ -160,16 +160,22 @@
 dirname,
+ '..',
  'public

Fix tests