diff --git a/sweebot.py b/sweebot.py index 307d2a9..ab307bf 100644 --- a/sweebot.py +++ b/sweebot.py @@ -21,16 +21,16 @@ from flask import Flask, send_file app = Flask(__name__) @app.route('/') -def index(): +def index_html(): return send_file("sweebot.html", mimetype='text/html') @app.route('/run.txt') -def run(): +def runs(): return str(run) @app.route('/block.txt') -def block(): +def blocks(): return str(block) @app.route('/script.js') -def script(): +def script_js(): return send_file("script.js", mimetype='application/javascript') threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()