mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
parent
ef54f00212
commit
c389c26220
1 changed files with 6 additions and 1 deletions
|
|
@ -595,7 +595,7 @@ def window():
|
|||
)
|
||||
|
||||
|
||||
@app.route(f'/robots.txt')
|
||||
@app.route('/robots.txt')
|
||||
def robots():
|
||||
response = make_response(
|
||||
'''User-Agent: *
|
||||
|
|
@ -604,6 +604,11 @@ Disallow: /''', 200)
|
|||
return response
|
||||
|
||||
|
||||
@app.route('/favicon.ico')
|
||||
def favicon():
|
||||
return app.send_static_file('img/favicon.ico')
|
||||
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
return render_template('error.html', error_message=str(e)), 404
|
||||
|
|
|
|||
Loading…
Reference in a new issue