Selaa lähdekoodia

add blank user and upgrade pages for later

Michael Mead 8 vuotta sitten
vanhempi
commit
db3431b49b
3 muutettua tiedostoa jossa 21 lisäystä ja 0 poistoa
  1. 19 0
      src/api/index.py
  2. 1 0
      src/api/templates/upgrade.html
  3. 1 0
      src/api/templates/user.html

+ 19 - 0
src/api/index.py

@@ -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

+ 1 - 0
src/api/templates/upgrade.html

@@ -0,0 +1 @@
+<H1>Upgrade</Hi>

+ 1 - 0
src/api/templates/user.html

@@ -0,0 +1 @@
+<H1>User</H1>