diff options
author | VG <vg@devys.org> | 2014-11-30 12:45:07 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-30 12:45:07 +0100 |
commit | 4c0fe94771a54499c23281fcbd295b897821ea4d (patch) | |
tree | e84f2b7185a134e5967aa2e8ea7bc731771f5d44 | |
parent | f88ad678ef76d936120d8d9d74da34c9bcb7739f (diff) | |
download | pasteme-4c0fe94771a54499c23281fcbd295b897821ea4d.tar.gz pasteme-4c0fe94771a54499c23281fcbd295b897821ea4d.tar.bz2 pasteme-4c0fe94771a54499c23281fcbd295b897821ea4d.zip |
fix popular route /favicon.ico and /robots.txt
-rwxr-xr-x | pasteme.py | 8 | ||||
-rw-r--r-- | static/robots.txt | 0 |
2 files changed, 8 insertions, 0 deletions
@@ -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('/<pid>') @bottle.route('/<pid>/<pformat>') def route_paste_get(pid, pformat='colored'): diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/robots.txt |