|
|
@ -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") |
|
|
|