From a4bc6867bd42fca9b37156e080d1c8b058fc9ca5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 26 Feb 2013 19:18:34 +0100 Subject: improved file view, added default plugin icon --- module/web/pyload_app.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'module/web/pyload_app.py') 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/') +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")) -- cgit v1.2.3