From 944bcecf4c6acc7ec19f57feb89f5d0d5a356ec7 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Sun, 1 Dec 2024 16:08:26 +0530 Subject: [PATCH] Added a website that is made with the help of Flask --- Visual Studio Code Projects/hello-flask/hello.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Visual Studio Code Projects/hello-flask/hello.py diff --git a/Visual Studio Code Projects/hello-flask/hello.py b/Visual Studio Code Projects/hello-flask/hello.py new file mode 100644 index 0000000..b229e75 --- /dev/null +++ b/Visual Studio Code Projects/hello-flask/hello.py @@ -0,0 +1,15 @@ +from flask import Flask +app = Flask(__name__) + +print(__name__) + +@app.route('/') +def hello_world(): + return 'Hello, World!' + +@app.route('/bye') +def say_bye(): + return "bye" + +if __name__ == "__main__": + app.run()