From 6e2b9d6ab39f2d9656f831476f6e0e0d65486cf3 Mon Sep 17 00:00:00 2001 From: Redume Date: Wed, 14 Feb 2024 15:11:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=20=D1=80=D0=BE?= =?UTF-8?q?=D1=83=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..1408c2e --- /dev/null +++ b/main.js @@ -0,0 +1,29 @@ +const fastify = require('fastify')({ logger: true }); + +fastify.route({ + method: 'GET', + url: '/', + schema: { + querystring: { + + }, + response: { + 200: { + + } + } + }, + preHandler: async (res, reply) => { + + }, + handler: async (res, reply) => { + + } +}) + +try { + await fastify.listen({ port: 3000 }) +} catch (err) { + fastify.log.error(err) + process.exit(1) +} \ No newline at end of file