add robots.txt

This commit is contained in:
tdurieux
2020-04-28 16:29:14 +02:00
parent ceb1d9b1bb
commit cb64bd74b0
2 changed files with 6 additions and 0 deletions

View File

@@ -503,6 +503,10 @@ class Anonymous_Github:
if repo_name == clean_github_repository(data['repository']):
repo = data
return render_template('index.html', repo=repo)
@application.route('/robots.txt')
def robots():
return application.send_static_file('robots.txt')
@application.route('/', methods=['POST'])
def add_repository():

2
static/robots.txt Normal file
View File

@@ -0,0 +1,2 @@
User-agent: *
Disallow: /