mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
add robots.txt
This commit is contained in:
@@ -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
2
static/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
Reference in New Issue
Block a user