Prevent indexing
This commit is contained in:
parent
ff0940a5af
commit
fdf1bc4153
2 changed files with 5 additions and 0 deletions
|
@ -160,6 +160,9 @@ def random_quote():
|
||||||
return mattermost_response(response)
|
return mattermost_response(response)
|
||||||
return mattermost_response('No quotes found matching "{}"'.format(text_contains), ephemeral=True)
|
return mattermost_response('No quotes found matching "{}"'.format(text_contains), ephemeral=True)
|
||||||
|
|
||||||
|
@app.route('/robots.txt', methods=['GET'])
|
||||||
|
def get_robots():
|
||||||
|
return render_template('robots.txt')
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def list_quotes():
|
def list_quotes():
|
||||||
|
|
2
app/templates/robots.txt
Normal file
2
app/templates/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
Loading…
Reference in a new issue