mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-26 02:47:47 +02:00
add robots.txt
This commit is contained in:
@@ -504,6 +504,10 @@ class Anonymous_Github:
|
|||||||
repo = data
|
repo = data
|
||||||
return render_template('index.html', repo=repo)
|
return render_template('index.html', repo=repo)
|
||||||
|
|
||||||
|
@application.route('/robots.txt')
|
||||||
|
def robots():
|
||||||
|
return application.send_static_file('robots.txt')
|
||||||
|
|
||||||
@application.route('/', methods=['POST'])
|
@application.route('/', methods=['POST'])
|
||||||
def add_repository():
|
def add_repository():
|
||||||
id = request.args.get('id', str(uuid.uuid4()))
|
id = request.args.get('id', str(uuid.uuid4()))
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
Reference in New Issue
Block a user