mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Merge pull request #2261 from alphagov/robots.txt
Serve robots.txt from the admin app
This commit is contained in:
@@ -26,6 +26,17 @@ def index():
|
||||
return render_template('views/signedout.html')
|
||||
|
||||
|
||||
@main.route('/robots.txt')
|
||||
def robots():
|
||||
return (
|
||||
'User-agent: *\n'
|
||||
'Disallow: /sign-in\n'
|
||||
'Disallow: /support\n'
|
||||
'Disallow: /support/\n'
|
||||
'Disallow: /register\n'
|
||||
), 200, {'Content-Type': 'text/plain'}
|
||||
|
||||
|
||||
@main.route('/error/<int:status_code>')
|
||||
def error(status_code):
|
||||
if status_code >= 500:
|
||||
|
||||
Reference in New Issue
Block a user