From 504e43258b7f5d1f71dbd0af0af5fb55c36e54b5 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 02:36:07 +0200 Subject: [PATCH] added backend logging --- backend/src/app.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/src/app.py b/backend/src/app.py index ff6b8b6..50f1cf5 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -4,6 +4,7 @@ import flask import flask_sqlalchemy import flask_praetorian import flask_cors +import sys db = flask_sqlalchemy.SQLAlchemy() guard = flask_praetorian.Praetorian() @@ -223,16 +224,12 @@ def survey(): return ret, 400 -@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") + print("hallooo POST", file=sys.stderr) + ret = {'message': 'Top'} + return ret, 200 # Run the example -- 2.45.2