Add behavior pages (fix #119) #130

Merged
cami merged 6 commits from feature/behaviourpages into main 2021-07-11 23:29:58 +00:00
Showing only changes of commit 84c997f17e - Show all commits

View file

@ -234,9 +234,16 @@ def survey():
return ret, 400
@app.route('/time')
def get_current_time():
return {'time': time.time()}
@app.route('/api/protected/behavior', methods=['GET'])
@flask_praetorian.auth_required
def get_randompassword():
print("Hallo")
@app.route('/api/protected/behavior', methods=['POST'])
@flask_praetorian.auth_required
def check_password_username():
print("hallooo POST")
# Run the example