Author
|
zPlus <zplus@peers.community>
2023-12-12 09:07:27
|
Committer
|
zPlus <zplus@peers.community>
2023-12-12 09:07:27
|
Commit
|
d3cd1d5
(patch)
|
Tree
|
44f64e9
|
Parent(s)
|
|
Set default content for robots.txt
commits diff:
b7a2011..d3cd1d5
1 file changed,
5 insertions,
1 deletion
—
download
Diffstat
Diff options
+5/-1
M app.py
78
|
78
|
|
|
79
|
79
|
|
@bottle.get('/robots.txt')
|
80
|
80
|
|
def robotstxt():
|
81
|
|
- |
return ""
|
|
81
|
+ |
response.content_type = 'text/plain; charset=UTF8'
|
|
82
|
+ |
|
|
83
|
+ |
return """User-agent: *
|
|
84
|
+ |
Disallow:
|
|
85
|
+ |
"""
|
82
|
86
|
|
|
83
|
87
|
|
@bottle.get('/static/<filename:path>', name='static')
|
84
|
88
|
|
def static(filename):
|