From beb39cd2b2dc6153aa5bcac69cfac0bd50d41274 Mon Sep 17 00:00:00 2001 From: ramprasathmk Date: Mon, 9 Dec 2024 21:06:18 +0545 Subject: [PATCH] update routes --- app/main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/main.py b/app/main.py index ad5d845..f4cc5e6 100644 --- a/app/main.py +++ b/app/main.py @@ -7,6 +7,24 @@ app = Flask(__name__) +@app.route('/') +def return_hello(): + return f""" +

Welcome

+
+

Greetings

+ """ + + +@app.route('/') +def return_hello_with_name(name: str = "Ramprasath M K"): + return f""" +

Welcome

+
+

Hi, {name}

+ """ + + @app.route('/') def return_backwards_string(random_string): return "".join(reversed(random_string))