Merge pull request 'added backend logging' (#136) from enhancement/cicd into main
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #136
This commit is contained in:
commit
9b344c1138
1 changed files with 4 additions and 7 deletions
|
@ -4,6 +4,7 @@ import flask
|
||||||
import flask_sqlalchemy
|
import flask_sqlalchemy
|
||||||
import flask_praetorian
|
import flask_praetorian
|
||||||
import flask_cors
|
import flask_cors
|
||||||
|
import sys
|
||||||
|
|
||||||
db = flask_sqlalchemy.SQLAlchemy()
|
db = flask_sqlalchemy.SQLAlchemy()
|
||||||
guard = flask_praetorian.Praetorian()
|
guard = flask_praetorian.Praetorian()
|
||||||
|
@ -223,16 +224,12 @@ def survey():
|
||||||
return ret, 400
|
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'])
|
@app.route('/api/protected/behavior', methods=['POST'])
|
||||||
@flask_praetorian.auth_required
|
@flask_praetorian.auth_required
|
||||||
def check_password_username():
|
def check_password_username():
|
||||||
print("hallooo POST")
|
print("hallooo POST", file=sys.stderr)
|
||||||
|
ret = {'message': 'Top'}
|
||||||
|
return ret, 200
|
||||||
|
|
||||||
|
|
||||||
# Run the example
|
# Run the example
|
||||||
|
|
Loading…
Reference in a new issue