diff --git a/backend/app.py b/backend/app.py index 81ec272..f4b9ac3 100644 --- a/backend/app.py +++ b/backend/app.py @@ -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') diff --git a/backend/sensors.py b/backend/sensors.py index c6c0075..efbe046 100644 --- a/backend/sensors.py +++ b/backend/sensors.py @@ -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