summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/app.py b/app.py
index e8bbc8b..3d36d99 100644
--- a/app.py
+++ b/app.py
@@ -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)