Skip to content

Commit

Permalink
adding robots.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
mohangcsm committed Oct 5, 2018
1 parent 8d979b5 commit 905af47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions API/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

sys.path.append('../')

from flask import Flask, render_template
from flask import Flask, render_template, send_from_directory
from flask import Response, make_response
from flask import request
from flask import Flask
Expand Down Expand Up @@ -214,4 +214,9 @@ def main():
thread.daemon = True
thread.start()

main()
@app.route('/robots.txt', methods=['GET'])
def robots():
return send_from_directory(app.static_folder, "robots.txt")


main()
2 changes: 2 additions & 0 deletions Dashboard/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 905af47

Please sign in to comment.