Update index.js

This commit is contained in:
Andras Bacsai
2026-02-27 23:41:13 +01:00
committed by GitHub
parent 3a3c93a774
commit 9820302471

View File

@@ -6,7 +6,7 @@ fastify.register(require('@fastify/cors'))
fastify.get('/', function (req, reply) { fastify.get('/', function (req, reply) {
console.log('hello'); console.log('hello');
return { hello: "from nodejs" } return { hello: "from nodejs #2" }
}) })
fastify.get('/300', function (req, reply) { fastify.get('/300', function (req, reply) {
return reply.code(300).header('Content-Type', 'application/json; charset=utf-8').send({ hello: '300' }) return reply.code(300).header('Content-Type', 'application/json; charset=utf-8').send({ hello: '300' })