React Project added

This commit is contained in:
caliskanbi
2023-05-14 01:01:07 +02:00
parent bfce051b60
commit 25678bab00
34 changed files with 17964 additions and 8 deletions
+8 -8
View File
@@ -1,15 +1,15 @@
from flask import Flask, jsonify
from flask import Flask, jsonify, Response
app = Flask(__name__)
@app.route('/CONNECTION', methods=['GET'])
def connection():
return Response(status=200)
@app.route('/GETQUESTION', methods=['GET'])
def hello():
return jsonify({'TEST': 'Dies ist eine Testfrage',
'firstanswer': 'erste Antwort',
'secondanswer': 'zweite Antwort',
'thirdanswer': 'dritte Antwort'})
def main():
app.run(host='127.0.0.1', port=5555, debug=True)
if __name__ == '__main__':
app.run(host='127.0.0.1', port=5555, debug=True)
main()