Added buttons, fixed some visuals, added History bar

This commit is contained in:
Davide Bongiovanni
2016-11-01 18:35:51 +01:00
parent d7a0c99984
commit e4d5c9c1fa
8 changed files with 284 additions and 44 deletions
+8
View File
@@ -17,6 +17,14 @@ def somehtml():
event['time'] = epochFormat(event['time'])
return render_template('status.html', events = history[::-1])
@app.route('/users')
def users():
return 'You have reached Users'
@app.route('/history')
def history():
return 'You have reached history'
@app.route('/getcardinfo/<cardID>')
def getCardInfo(cardID):
return send_from_directory('cards', cardID + '.json')