vb
This commit is contained in:
parent
031e332be3
commit
ac9717c99f
2 changed files with 9 additions and 1 deletions
|
@ -23,6 +23,14 @@ if "load_chat" in sys.argv or SITE == 'localhost':
|
|||
def chat( v):
|
||||
return render_template("chat.html", v=v, messages=messages)
|
||||
|
||||
|
||||
@app.get('/static/chat.js')
|
||||
@limiter.exempt
|
||||
def chatjs(path):
|
||||
resp = make_response(send_from_directory('assets', 'js/chat.js'))
|
||||
return resp
|
||||
|
||||
|
||||
@socketio.on('speak')
|
||||
@limiter.limit("3/second;10/minute")
|
||||
@auth_required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue