aboutsummaryrefslogtreecommitdiffstats
path: root/docker/flask_app/flask_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/flask_app/flask_app.py')
-rw-r--r--docker/flask_app/flask_app.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/flask_app/flask_app.py b/docker/flask_app/flask_app.py
new file mode 100644
index 00000000..771a91bc
--- /dev/null
+++ b/docker/flask_app/flask_app.py
@@ -0,0 +1,16 @@
+from flask import Flask, request
+import json
+
+app = Flask(__name__)
+
+@app.route('/', methods=['GET', 'POST'])
+def get_data():
+ #print(request.data)
+ #print(type(request.data))
+ print(request.data.decode('utf-8'))
+ #print(json.loads(request.data.decode("utf-8")))
+
+ return 'This is working!'
+
+if __name__=='__main__':
+ app.run(debug=True, host='0.0.0.0')