From 3207ea77d027d124476645223387b9030ec71897 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sun, 11 Dec 2022 16:55:44 +0100 Subject: [PATCH] update redirect --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 22e6284..04f6fb7 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,7 @@ fastify.register(require('@fastify/static'), { }) fastify.get('/', async (request, reply) => { - response.redirect('/index.html') + reply.redirect('/index.html') }) fastify.post('/login', async (request, reply) => {