From 09b73bcc10e0d8f673261b06b8f771a2b6bd9c31 Mon Sep 17 00:00:00 2001 From: Sebastian Steuer Date: Sat, 23 Nov 2013 23:26:06 +0100 Subject: [PATCH] bottle serves the website now --- picoreflowd.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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")