From 4c0fe94771a54499c23281fcbd295b897821ea4d Mon Sep 17 00:00:00 2001 From: VG Date: Sun, 30 Nov 2014 12:45:07 +0100 Subject: fix popular route /favicon.ico and /robots.txt --- pasteme.py | 8 ++++++++ static/robots.txt | 0 2 files changed, 8 insertions(+) create mode 100644 static/robots.txt diff --git a/pasteme.py b/pasteme.py index 68a93f3..57fb1f0 100755 --- a/pasteme.py +++ b/pasteme.py @@ -32,6 +32,14 @@ def route_paste_post(): def route_static(path): return bottle.static_file(path, root='static') +@bottle.route('/favicon.ico') +def route_favicon(path): + return bottle.static_file('favicon.ico', root='static') + +@bottle.route('/robots.txt') +def route_favicon(path): + return bottle.static_file('robots.txt', root='static') + @bottle.route('/') @bottle.route('//') def route_paste_get(pid, pformat='colored'): diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3