diff --git a/API/api.py b/API/api.py index 710be23..35511f3 100644 --- a/API/api.py +++ b/API/api.py @@ -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 @@ -214,4 +214,9 @@ def main(): thread.daemon = True thread.start() -main() \ No newline at end of file +@app.route('/robots.txt', methods=['GET']) +def robots(): + return send_from_directory(app.static_folder, "robots.txt") + + +main() diff --git a/Dashboard/static/robots.txt b/Dashboard/static/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/Dashboard/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /