From b0e2da155f7109cf1e87d02257db3c930e27299b Mon Sep 17 00:00:00 2001 From: calebying <77036093+calebying@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:13:47 +0800 Subject: [PATCH 1/3] Update app.js --- microservice/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microservice/app.js b/microservice/app.js index e5e494c..50e3b38 100644 --- a/microservice/app.js +++ b/microservice/app.js @@ -5,7 +5,7 @@ app.set('port', process.env.PORT || 8080); let pod = process.env.HOSTNAME || 'unknown-pod'; app.get('/', function(request, response) { - let randomColor = getRandomColor(); // <-- comment this + ;let randomColor = getRandomColor(); // <-- comment this //let randomColor = getRandomGrayScaleColor(); // <-- uncomment this response.writeHead(200, {'Content-Type': 'application/json'}); From 41b89056dee8465b55b9d38a3658fb1908166495 Mon Sep 17 00:00:00 2001 From: calebying <77036093+calebying@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:19:07 +0800 Subject: [PATCH 2/3] Update app.js --- microservice/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microservice/app.js b/microservice/app.js index 50e3b38..c506b72 100644 --- a/microservice/app.js +++ b/microservice/app.js @@ -5,10 +5,10 @@ app.set('port', process.env.PORT || 8080); let pod = process.env.HOSTNAME || 'unknown-pod'; app.get('/', function(request, response) { - ;let randomColor = getRandomColor(); // <-- comment this + let randomColor = getRandomColor(); // <-- comment this //let randomColor = getRandomGrayScaleColor(); // <-- uncomment this - response.writeHead(200, {'Content-Type': 'application/json'}); + response.writeHead(50, {'Content-Type': 'application/json'}); response.end(JSON.stringify({ 'pod': pod, 'color': randomColor From 54f0adcddadc6b1819b0bac28d439eb69ad09d3e Mon Sep 17 00:00:00 2001 From: calebying <77036093+calebying@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:28:20 +0800 Subject: [PATCH 3/3] Update app.js --- microservice/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microservice/app.js b/microservice/app.js index c506b72..1619694 100644 --- a/microservice/app.js +++ b/microservice/app.js @@ -8,7 +8,7 @@ app.get('/', function(request, response) { let randomColor = getRandomColor(); // <-- comment this //let randomColor = getRandomGrayScaleColor(); // <-- uncomment this - response.writeHead(50, {'Content-Type': 'application/json'}); + response.writeHead(100, {'Content-Type': 'application/json'}); response.end(JSON.stringify({ 'pod': pod, 'color': randomColor