Skip to content

Commit

Permalink
🚧 💥 #1 Reverting back to simple Flask app
Browse files Browse the repository at this point in the history
  • Loading branch information
Balaji-Ganesh committed Jun 15, 2023
1 parent 2f64234 commit 52ef361
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 46 deletions.
31 changes: 0 additions & 31 deletions web/__init__.py

This file was deleted.

23 changes: 14 additions & 9 deletions web/web/views.py → web/app.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
from flask import render_template, Response
from . import web
from flask import Flask, render_template, Response

@web.route('/')
app = Flask(__name__)


@app.route('/')
def home():
return render_template('index.html', nav_bar='home')

@web.route('/manual_mode')

@app.route('/manual_mode')
def manual_mode():
return render_template('manualMode.htm', nav_bar='manual_mode')

@web.route('/training_mode')

@app.route('/training_mode')
def training_mode():
return render_template('trainingMode.htm', nav_bar='training_mode')

@web.route('/autonomous_mode')

@app.route('/autonomous_mode')
def autonomous_mode():
return render_template('autonomousMode.htm', nav_bar='auto_mode')

# @web.route('/camfeed')
# def camfeed():
# return Response(parse_frames(), mimetype='multipart/x-mixed-replace; boundary=frame')

if __name__ == '__main__':
app.run()
6 changes: 0 additions & 6 deletions web/web/__init__.py

This file was deleted.

0 comments on commit 52ef361

Please sign in to comment.