|
|
|
@ -159,6 +159,25 @@ def dashboard():
|
|
|
|
|
title = 'Dashboard'
|
|
|
|
|
return render_template('dashboard.html',context=context,title=title)
|
|
|
|
|
|
|
|
|
|
@app.route('/upgrade')
|
|
|
|
|
def upgrade():
|
|
|
|
|
context = PARAMS['context']
|
|
|
|
|
if 'title' in PARAMS :
|
|
|
|
|
title = PARAMS['title']
|
|
|
|
|
else:
|
|
|
|
|
title = 'Upgrade'
|
|
|
|
|
return render_template('upgrade.html',context=context,title=title)
|
|
|
|
|
|
|
|
|
|
@app.route('/user')
|
|
|
|
|
def user():
|
|
|
|
|
context = PARAMS['context']
|
|
|
|
|
if 'title' in PARAMS :
|
|
|
|
|
title = PARAMS['title']
|
|
|
|
|
else:
|
|
|
|
|
title = 'Upgrade'
|
|
|
|
|
return render_template('user.html',context=context,title=title)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
This function is designed to trigger learning for anomaly detection
|
|
|
|
|
@TODO: forward this to a socket i.e non-blocking socket
|
|
|
|
|