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 deletions
—
download
Diffstat
Diff options
+4/-3
M app.py
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
|
|
"""
|