summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-26 19:18:34 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-26 19:18:34 +0100
commita4bc6867bd42fca9b37156e080d1c8b058fc9ca5 (patch)
tree00cb06f2e7acf339afe822b347f02f251ad31db9 /module/web/pyload_app.py
parentimproved package and global menu (diff)
downloadpyload-a4bc6867bd42fca9b37156e080d1c8b058fc9ca5.tar.xz
improved file view, added default plugin icon
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 185c773a3..9f3c2413a 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -96,6 +96,12 @@ def serve_template(path):
print e
return HTTPError(404, "Not Found")
+@route('/icons/<path:path>')
+def serve_icon(path):
+ # TODO
+ return redirect('/static/img/icon.png')
+ # return static_file(path, root=join("tmp", "icons"))
+
@route('/favicon.ico')
def favicon():
return static_file("favicon.ico", root=join(PROJECT_DIR, "static", "img"))