From 54a4951fb97cf97ecc8963bc43b199268fa1e33b Mon Sep 17 00:00:00 2001
From: Dominic Kraemer
 <Dominic_Daniel.Kraemer@Student.Reutlingen-University.de>
Date: Wed, 8 May 2024 11:46:29 +0200
Subject: [PATCH] replace return statement with 'index.html' template

---
 app.py               |  3 ++-
 templates/index.html | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 templates/index.html

diff --git a/app.py b/app.py
index dcd0aeb..1333743 100644
--- a/app.py
+++ b/app.py
@@ -1,10 +1,11 @@
 from flask import Flask
+from flask import render_template
 
 app = Flask(__name__)
 
 @app.route('/')
 def home():
-    return "Space Station Chatbot"
+    return render_template("index.html")
 
 if __name__ == '__main__':
     app.run(debug=True)
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..d8ab780
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Space Station Chatbot</title>
+        <meta charset="UTF-8">
+    </head>
+
+    <body>
+        <h1>Welcome to the Space Station Chatbot!</h1>
+    </body>
+</html>
\ No newline at end of file
-- 
GitLab