asyncnomi 3 years ago
parent
commit
a6b6fdcd50
  1. 4
      index.js

4
index.js

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

Loading…
Cancel
Save