summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 7be4975a7..04cd07cb2 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -84,6 +84,13 @@ def server_static(path):
response.headers['Cache-control'] = "public"
return static_file(path, root=join(PROJECT_DIR, "static"))
+@route('/templates/<path:path>')
+def serve_template(path):
+ """ Serve backbone templates """
+ args = path.split("/")
+ args.insert(1, "backbone")
+ return static_file("/".join(args), root=join(PROJECT_DIR, "templates"))
+
@route('/favicon.ico')
def favicon():
return static_file("favicon.ico", root=join(PROJECT_DIR, "static", "img"))