Skip to content
Snippets Groups Projects
Commit b05e184c authored by Matt Grau's avatar Matt Grau
Browse files

add a route for '/'

parent 2bdf5aa8
No related branches found
No related tags found
No related merge requests found
import flask
import waitress
from device import Device
device = Device()
app = flask.Flask(__name__)
@app.route('/')
def index():
return main('index.html')
@app.route('/<path:path>')
def main(path):
return flask.send_from_directory('frontend/build/', path)
......@@ -39,4 +43,5 @@ def resistance():
if __name__ == '__main__':
import waitress
waitress.serve(app, host='0.0.0.0', port=8000)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment