bottle serves the website now

MAX31855-EH
Sebastian Steuer 2013-11-23 23:26:06 +01:00
rodzic cd2065dd4e
commit 09b73bcc10
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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")