from flask import Flask, jsonify, abort, request, current_app
app = Flask(__name__)
@app.route('/test', methods=['GET', 'POST'])
def test():
return "test"
if __name__ == '__main__':
app.run(debug=True, port=8080)
export FLASK_APP=restfulAPI.py
python3 -m flask run --host=0.0.0.0 -p 8080