parent
724b8a8b68
commit
529ae8f5d1
|
@ -13,10 +13,13 @@ initialized = False
|
|||
lock = Lock() # Sperre (Lock) für die analyze_data-Methode
|
||||
|
||||
def create_response(status_code, description):
|
||||
return jsonify({
|
||||
response_data = {
|
||||
'status': status_code,
|
||||
'description': description
|
||||
})
|
||||
}
|
||||
response = make_response(jsonify(response_data))
|
||||
response.status_code = status_code
|
||||
return response
|
||||
|
||||
@app.route('/trng/randomNum/init', methods=['GET'])
|
||||
def initialize_generator():
|
||||
|
|
Loading…
Reference in New Issue