asyncnomi 3 years ago
parent
commit
1b4692e701
  1. 2
      index.js

2
index.js

@ -42,7 +42,7 @@ fastify.register(require('@fastify/static'), {
}) })
fastify.get('/', async (request, reply) => { fastify.get('/', async (request, reply) => {
reply.redirect('/index.html') reply.send(fs.readFileSync('./static/index.html'));
}) })
fastify.post('/login', async (request, reply) => { fastify.post('/login', async (request, reply) => {

Loading…
Cancel
Save