Make flask serve the static root file.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 23 Jul 2017 19:23:43 +0000 (19:23 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 23 Jul 2017 19:23:43 +0000 (19:23 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrfeed/trunk@2642 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrfeed/wrfeed.py

index b7b0502537d1c705ccb77e71f821cdab87003558..a1a3a801bc33209e6904745db5d481ad5c5f5528 100644 (file)
@@ -1,7 +1,9 @@
 # http://flask.pocoo.org/
-from flask import Flask
+# FLASK_APP=wrfeed.py python3 -m flask run
+from flask import Flask, send_from_directory
 app = Flask(__name__)
 
+
 @app.route("/")
 def hello():
-    return "Hello World!"
\ No newline at end of file
+    return send_from_directory('public', 'index.html')  # actually, this is no template