From e11a41683121c5dd2668a27075aefb56fceba263 Mon Sep 17 00:00:00 2001 From: kundunil Date: Wed, 27 Jul 2022 09:34:05 +0530 Subject: [PATCH] updated --- .../webservices/restfulwebservices/HelloWorldController.java | 2 +- projects/hello-world/hello-world-nodejs/index.js | 2 +- projects/hello-world/hello-world-python/launch.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/hello-world/hello-world-java/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/HelloWorldController.java b/projects/hello-world/hello-world-java/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/HelloWorldController.java index a4085031..7149fdcf 100755 --- a/projects/hello-world/hello-world-java/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/HelloWorldController.java +++ b/projects/hello-world/hello-world-java/src/main/java/com/in28minutes/rest/webservices/restfulwebservices/HelloWorldController.java @@ -8,6 +8,6 @@ public class HelloWorldController { @GetMapping(path = "/") public String helloWorld() { - return "{\"message\":\"Hello World Java v1\"}"; + return "{\"message\":\"Hello World Java v2\"}"; } } diff --git a/projects/hello-world/hello-world-nodejs/index.js b/projects/hello-world/hello-world-nodejs/index.js index 3d23b495..9e7306e1 100755 --- a/projects/hello-world/hello-world-nodejs/index.js +++ b/projects/hello-world/hello-world-nodejs/index.js @@ -3,7 +3,7 @@ const process = require('process'); var expressapp = express() expressapp.get('/', function (req, res) { - res.send('{"message":"Hello World JavaScript v1"}') + res.send('{"message":"Hello World JavaScript v2"}') }) expressapp.listen(5000, function () { console.log('Ready on port 5000!') diff --git a/projects/hello-world/hello-world-python/launch.py b/projects/hello-world/hello-world-python/launch.py index 3a161a5e..1ac542e4 100755 --- a/projects/hello-world/hello-world-python/launch.py +++ b/projects/hello-world/hello-world-python/launch.py @@ -2,6 +2,6 @@ helloworld = Flask(__name__) @helloworld.route("/") def run(): - return "{\"message\":\"Hello World Python v1\"}" + return "{\"message\":\"Hello World Python v2\"}" if __name__ == "__main__": helloworld.run(host="0.0.0.0", port=int("5000"), debug=True) \ No newline at end of file