123456789101112131415 |
- from flask import Flask, jsonify
- app = Flask(__name__)
-
-
-
- @app.route('/GETQUESTION', methods=['GET'])
- def hello():
- return jsonify({'TEST': 'Dies ist eine Testfrage',
- 'firstanswer': 'erste Antwort',
- 'secondanswer': 'zweite Antwort',
- 'thirdanswer': 'dritte Antwort'})
-
-
- if __name__ == '__main__':
- app.run(host='127.0.0.1', port=5555, debug=True)
|