1.0.1 Added wsgi file & removed input form at the route ("/")
This commit is contained in:
parent
b21e3af8e7
commit
25ceaa0574
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
wsgi.py
|
|
||||||
*.swp
|
*.swp
|
||||||
config.py
|
config.py
|
||||||
.idea/
|
.idea/
|
||||||
|
|||||||
@ -1076,7 +1076,7 @@ class ServerSentEvent:
|
|||||||
return message.encode('utf-8')
|
return message.encode('utf-8')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
"""@app.route('/', methods=['GET'])
|
||||||
async def index():
|
async def index():
|
||||||
return await render_template('index.html')
|
return await render_template('index.html')
|
||||||
|
|
||||||
@ -1086,7 +1086,7 @@ async def broadcast():
|
|||||||
data = await request.get_json()
|
data = await request.get_json()
|
||||||
for queue in app.clients:
|
for queue in app.clients:
|
||||||
await queue.put(data['message'])
|
await queue.put(data['message'])
|
||||||
return jsonify(True)
|
return jsonify(True) """
|
||||||
|
|
||||||
|
|
||||||
@app.route('/sse')
|
@app.route('/sse')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user