Reviewed-on: #130
This commit is contained in:
commit
aa26855b43
8 changed files with 136 additions and 50 deletions
|
@ -223,9 +223,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue