From 1b4692e70112e692de3c58a6e42d883a7b78e830 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sun, 8 Jan 2023 23:43:02 +0100 Subject: [PATCH] bla --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {