|
|
@ -55,7 +55,7 @@ def create_chat(): |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
return jsonify({"error": f"An error occurred: {str(e)}"}), 500 |
|
|
|
return jsonify({"error": f"An error occurred: {str(e)}"}), 500 |
|
|
|
|
|
|
|
|
|
|
|
@chat.route("/get", methods=["GET"]) |
|
|
|
@chat.route("/get", methods=["GET", "POST"]) |
|
|
|
@auth_required() |
|
|
|
@auth_required() |
|
|
|
def get_messages(): |
|
|
|
def get_messages(): |
|
|
|
try: |
|
|
|
try: |
|
|
|