From b7a2011406cfdc4a61c0c5d287a8c9cd87bdb576 Mon Sep 17 00:00:00 2001 From: zPlus Date: Wed, 29 Nov 2023 08:52:31 +0100 Subject: [PATCH] Add route for robots.txt --- app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 9ee90bc..74bf3ef 100755 --- a/app.py +++ b/app.py @@ -74,11 +74,12 @@ def error404(error): @bottle.get('/favicon.ico') def favicon(): - """ - """ - return bottle.static_file('favicon.ico', root='./') +@bottle.get('/robots.txt') +def robotstxt(): + return "" + @bottle.get('/static/', name='static') def static(filename): """