diff --git a/picoreflowd.py b/picoreflowd.py index a9828f1..84f950a 100644 --- a/picoreflowd.py +++ b/picoreflowd.py @@ -39,6 +39,14 @@ class OvenWatcher(threading.Thread): ovenWatcher = OvenWatcher(oven) ovenWatcher.start() +@app.route('/') +def index(): + return bottle.redirect('/picoreflow/index.html') + +@app.route('/picoreflow/:filename#.*#') +def send_static(filename): + return bottle.static_file(filename, root='./public/') + @app.route('/run') def start_oven(): oven.run_profile("abc")