summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.py b/app.py
index ca7e5d7..cfedee5 100644
--- a/app.py
+++ b/app.py
@@ -8,9 +8,9 @@ app = Bottle()
def index():
return template("index")
[email protected]("/static/<filename>")
-def server_static(filename):
- return static_file(filename, root="./static/")
[email protected]("/<type:re:styles|images>/<filename>")
+def server_static(type, filename):
+ return static_file(filename, root=f"./static/{type}/")
debug(True)
run(app, host='localhost', port=8080, reloader=True) \ No newline at end of file