Added route for automatic mode

This commit is contained in:
SanjayramVempati 2023-02-03 18:21:59 -05:00 committed by GitHub
parent 07ba4aed5b
commit 201814e362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
app.py
View File

@ -15,10 +15,14 @@ css.build()
@app.route("/")
def homepage():
return render_template("index.html")
#Route for manual mode
@app.route("/tw")
def tw():
return render_template("tw.html")
#Route for automatic mode
@app.route("/auto")
def auto():
return render_template("auto.html")
#Modify to get data
@app.route('/api/datapoint')