Update index.js

This commit is contained in:
Andras Bacsai
2024-03-14 21:38:37 +01:00
committed by GitHub
parent d07de5a0fb
commit bb3011414d

View File

@@ -6,7 +6,7 @@ fastify.get('/', function (req, reply) {
return { hello: "from nodejs" }
})
fastify.get('/env', function (req, reply) {
return { env: process.env.NODE_ENV }
return { env: process.env }
})
fastify.get('/health', function (req, reply) {
@@ -25,4 +25,4 @@ const start = async () => {
process.exit(1)
}
}
start()
start()