1.0.1 Added wsgi file & removed input form at the route ("/")

This commit is contained in:
Vivek Teega 2021-12-29 04:31:07 +00:00
parent b21e3af8e7
commit 25ceaa0574
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
.vscode/
__pycache__/
wsgi.py
*.swp
config.py
.idea/

View File

@ -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')

4
wsgi.py Normal file
View File

@ -0,0 +1,4 @@
from ranchimallflo_api import app
if __name__ == "__main__":
app.run()