home » dokk/dokk.org.git
Author zPlus <zplus@peers.community> 2023-11-29 07:52:31
Committer zPlus <zplus@peers.community> 2023-11-29 07:52:31
Commit b7a2011 (patch)
Tree 5103779
Parent(s)

Add route for robots.txt


commits diff: 39dd63b..b7a2011
1 file changed, 4 insertions, 3 deletionsdownload


Diffstat
-rwxr-xr-x app.py 7

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+4/-3 M   app.py
index 9ee90bc..74bf3ef
old size: 12K - new size: 12K
@@ -74,11 +74,12 @@ def error404(error):
74 74
75 75 @bottle.get('/favicon.ico')
76 76 def favicon():
77 - """
78 - """
79 -
80 77 return bottle.static_file('favicon.ico', root='./')
81 78
79 + @bottle.get('/robots.txt')
80 + def robotstxt():
81 + return ""
82 +
82 83 @bottle.get('/static/<filename:path>', name='static')
83 84 def static(filename):
84 85 """