diff --git a/index.js b/index.js index 9a85c06..ecf834a 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ fastify.register(require('@fastify/static'), { }) fastify.get('/', async (request, reply) => { - reply.redirect('/index.html') + reply.send(fs.readFileSync('./static/index.html')); }) fastify.post('/login', async (request, reply) => {