Updated some things and logger starts only once
This commit is contained in:
parent
0e222d3d52
commit
c9e987a28f
9 changed files with 36 additions and 27 deletions
|
@ -157,6 +157,17 @@ def register():
|
|||
return ret, 409
|
||||
|
||||
|
||||
@app.route('/api/protected/behavior', methods=['POST'])
|
||||
@flask_praetorian.auth_required
|
||||
def check_password_username():
|
||||
req = flask.request.get_json(force=True)
|
||||
token = guard.read_token_from_header()
|
||||
extracted_token = guard.extract_jwt_token(token)
|
||||
id_req = extracted_token['id']
|
||||
ret = {'message': 'Top'}
|
||||
return ret, 200
|
||||
|
||||
|
||||
@app.route('/api/protected/umfrage', methods=['POST'])
|
||||
@flask_praetorian.auth_required
|
||||
def survey():
|
||||
|
@ -228,12 +239,6 @@ def survey():
|
|||
return ret, 400
|
||||
|
||||
|
||||
@app.route('/api/protected/behavior', methods=['POST'])
|
||||
@flask_praetorian.auth_required
|
||||
def check_password_username():
|
||||
print("hallooo POST", file=sys.stderr)
|
||||
ret = {'message': 'Top'}
|
||||
return ret, 200
|
||||
|
||||
|
||||
# Run the example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue