|
|
|
@ -42,6 +42,10 @@ fastify.register(require('@fastify/static'), { |
|
|
|
decorateReply: false |
|
|
|
}) |
|
|
|
|
|
|
|
fastify.get('/', async (request, reply) => { |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
fastify.post('/login', async (request, reply) => { |
|
|
|
let content = request.body; |
|
|
|
if (content.hasOwnProperty("user") |
|
|
|
@ -347,7 +351,7 @@ function makeid(length) { |
|
|
|
|
|
|
|
const start = async () => { |
|
|
|
try { |
|
|
|
await fastify.listen({ port: 3000 }) |
|
|
|
await fastify.listen({ port: 3000 , host: '0.0.0.0',}) |
|
|
|
} catch (err) { |
|
|
|
fastify.log.error(err) |
|
|
|
LDAP.close(function(err) { |
|
|
|
|