aboutsummaryrefslogtreecommitdiffstats
path: root/docker/flask_app/flask_app.py
blob: 771a91bc37889bb571ffe8e6603e3d42cfaae74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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')