This commit is contained in:
asyncnomi 2023-01-08 23:44:49 +01:00
parent 1b4692e701
commit a6b6fdcd50

View file

@ -41,10 +41,6 @@ fastify.register(require('@fastify/static'), {
decorateReply: false
})
fastify.get('/', async (request, reply) => {
reply.send(fs.readFileSync('./static/index.html'));
})
fastify.post('/login', async (request, reply) => {
let content = request.body;
if (content.hasOwnProperty("user")