Skip to content

Commit

Permalink
add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Oct 31, 2014
1 parent 48869bd commit c286411
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webui/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@ def runtask():

ret = rpc.newtask(newtask)
return json.dumps({"result": ret}), 200, {'Content-Type': 'application/json'}

@app.route('/robots.txt')
def robots():
return """User-agent: *
Disallow: /
""", 200, {'Content-Type': 'text/plain'}

0 comments on commit c286411

Please sign in to comment.