fds
This commit is contained in:
parent
0d89fa2dfa
commit
29b0bcd9f9
1 changed files with 7 additions and 6 deletions
|
@ -7,15 +7,16 @@ from files.__main__ import app
|
|||
from flask import render_template
|
||||
import sys
|
||||
|
||||
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
def chat( v):
|
||||
return render_template("chat.html", v=v)
|
||||
|
||||
|
||||
if "load_chat" in sys.argv:
|
||||
sex = SocketIO(app)
|
||||
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
def chat( v):
|
||||
return render_template("chat.html", v=v)
|
||||
|
||||
|
||||
@sex.on('speak')
|
||||
@auth_required
|
||||
def speak(data, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue