Browse Source

Nahrát soubory do ''

hugo 1 week ago
parent
commit
074aa09ba6
1 changed files with 15 additions and 0 deletions
  1. 15 0
      b end.py

+ 15 - 0
b end.py

@@ -0,0 +1,15 @@
+from flask import Flask, render_template
+
+app = Flask(__name__)
+
+@app.route("/")
+def index():
+    return render_template("home.html")
+
+@app.route("/health")
+def health():
+    return "Health check passed!"
+
+@app.route("/api/questions/")
+def questions_index():
+    return "Hello, World!"