update copyright and add a root route

This commit is contained in:
Kristjan Komlosi
2020-07-13 13:13:01 +02:00
parent 54b93cb05c
commit 16d7624154
2 changed files with 5 additions and 1 deletions

View File

@@ -14,3 +14,7 @@ def sendData():
response = jsonify([s.getData(), l.getData(), u.getABI()])
response.headers.add('Access-Control-Allow-Origin', '*')
return response
@app.route('/')
def renderTable()
return render_template('index.html')

View File

@@ -1,6 +1,6 @@
# sensors.py - a module for interfacing to the sensors
'''Module for interfacing with TeraHz sensors'''
# Copyright 2019 Kristjan Komloši
# Copyright 2019, 2020 Kristjan Komloši
# All code in this file is licensed under the ISC license, provided in LICENSE.txt
import serial as ser
import pandas as pd