From 84c997f17eef6574db92de35f4a0f3199cd0a82a Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:07:34 +0200 Subject: [PATCH] started backend with things --- backend/src/app.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/backend/src/app.py b/backend/src/app.py index 8953a76..78007b9 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -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