Add failed if failed

This commit is contained in:
redfast00 2021-09-27 15:17:31 +02:00
parent 749069c66a
commit 2efcdb0624
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -80,7 +80,8 @@ def reply_post():
if not message:
return "No message found"
socketio.emit('replymessage', {'message': message}, broadcast=True)
return "OK"
return "Message sent\n"
return "Failed\n"
@app.route("/messages/", methods = ["POST"])
def messages_post():