From 205f195d5f376fc5d29d44aa090c62b6c122ff5e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 15 Mar 2024 20:46:22 +0100 Subject: [PATCH] Update index.js --- nodejs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/index.js b/nodejs/index.js index 8d66b15..46faf7a 100644 --- a/nodejs/index.js +++ b/nodejs/index.js @@ -9,7 +9,7 @@ fastify.get('/env', function (req, reply) { return { env: process.env } }) fastify.get('/env/:env', function (req, reply) { - const env = request.params.env + const env = req.params.env return { env: process.env[env] } })