From 567add501b9caae185816f2976126fe6ed54161f Mon Sep 17 00:00:00 2001 From: choelzl Date: Mon, 16 May 2022 10:22:56 +0200 Subject: [PATCH] Added new static --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index b04e485..7804909 100644 --- a/server.js +++ b/server.js @@ -7,9 +7,9 @@ const HOST = '0.0.0.0'; const fastify = require('fastify')() const path = require('path') -// fastify.register(require('@fastify/static'), { -// root: path.join(__dirname), -// }) +fastify.register(require('@fastify/static'), { + root: path.join(__dirname), +}) fastify.get('/', function (req, reply) { return reply.sendFile('index.html');