diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -from bottle import Bottle, run +from bottle import Bottle, run, static_file from bottle import jinja2_template as template app = Bottle() @@ -7,4 +7,8 @@ app = Bottle() def hello(): return template("index") [email protected]("/static/<filename>") +def server_static(filename): + return static_file(filename, root="./static/") + run(app, host='localhost', port=8080) |