aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-04 17:23:10 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-04 17:23:10 +0100
commit599de74536b243c67d99c92a2e25eb1b155d58ee (patch)
tree32c643a177f5bdcf1fb52cec94bbad5bc9f786d3 /main.py
parentbcaccefc8bea56c99b21a63bcb6b29f358174bf1 (diff)
flask + react werkt
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.py b/main.py
index 1358978..cb1f616 100644
--- a/main.py
+++ b/main.py
@@ -1,3 +1,11 @@
+from flask import Flask
+
+app = Flask(__name__)
+
+@app.route("/test")
+def testroute():
+ return "It's working!"
+
def main():
print("Hello world!")