mirror of
https://github.com/PotentiaRobotics/robot-gui.git
synced 2025-04-21 03:10:17 -04:00
Added route for automatic mode
This commit is contained in:
parent
07ba4aed5b
commit
201814e362
6
app.py
6
app.py
|
@ -15,10 +15,14 @@ css.build()
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def homepage():
|
def homepage():
|
||||||
return render_template("index.html")
|
return render_template("index.html")
|
||||||
|
#Route for manual mode
|
||||||
@app.route("/tw")
|
@app.route("/tw")
|
||||||
def tw():
|
def tw():
|
||||||
return render_template("tw.html")
|
return render_template("tw.html")
|
||||||
|
#Route for automatic mode
|
||||||
|
@app.route("/auto")
|
||||||
|
def auto():
|
||||||
|
return render_template("auto.html")
|
||||||
|
|
||||||
#Modify to get data
|
#Modify to get data
|
||||||
@app.route('/api/datapoint')
|
@app.route('/api/datapoint')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user