diff --git a/.gitignore b/.gitignore index 5450b91..7d86da5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .vscode/ __pycache__/ -wsgi.py *.swp config.py .idea/ diff --git a/ranchimallflo_api.py b/ranchimallflo_api.py index 166eef0..d35e77a 100644 --- a/ranchimallflo_api.py +++ b/ranchimallflo_api.py @@ -1076,7 +1076,7 @@ class ServerSentEvent: return message.encode('utf-8') -@app.route('/', methods=['GET']) +"""@app.route('/', methods=['GET']) async def index(): return await render_template('index.html') @@ -1086,7 +1086,7 @@ async def broadcast(): data = await request.get_json() for queue in app.clients: await queue.put(data['message']) - return jsonify(True) + return jsonify(True) """ @app.route('/sse') diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..025a73f --- /dev/null +++ b/wsgi.py @@ -0,0 +1,4 @@ +from ranchimallflo_api import app + +if __name__ == "__main__": + app.run()