chat history with the NPC modal
This commit is contained in:
@@ -29,7 +29,7 @@ logger = get_logger(__file__)
|
||||
chat_bp = Blueprint('chat', __name__)
|
||||
|
||||
|
||||
@chat_bp.route('/characters/<character_id>/chats', methods=['GET'])
|
||||
@chat_bp.route('/api/v1/characters/<character_id>/chats', methods=['GET'])
|
||||
@require_auth
|
||||
def get_conversations_summary(character_id: str):
|
||||
"""
|
||||
@@ -76,7 +76,7 @@ def get_conversations_summary(character_id: str):
|
||||
return error_response(f"Failed to retrieve conversations: {str(e)}", 500)
|
||||
|
||||
|
||||
@chat_bp.route('/characters/<character_id>/chats/<npc_id>', methods=['GET'])
|
||||
@chat_bp.route('/api/v1/characters/<character_id>/chats/<npc_id>', methods=['GET'])
|
||||
@require_auth
|
||||
def get_conversation_history(character_id: str, npc_id: str):
|
||||
"""
|
||||
@@ -160,7 +160,7 @@ def get_conversation_history(character_id: str, npc_id: str):
|
||||
return error_response(f"Failed to retrieve conversation: {str(e)}", 500)
|
||||
|
||||
|
||||
@chat_bp.route('/characters/<character_id>/chats/search', methods=['GET'])
|
||||
@chat_bp.route('/api/v1/characters/<character_id>/chats/search', methods=['GET'])
|
||||
@require_auth
|
||||
def search_messages(character_id: str):
|
||||
"""
|
||||
@@ -265,7 +265,7 @@ def search_messages(character_id: str):
|
||||
return error_response(f"Search failed: {str(e)}", 500)
|
||||
|
||||
|
||||
@chat_bp.route('/characters/<character_id>/chats/<message_id>', methods=['DELETE'])
|
||||
@chat_bp.route('/api/v1/characters/<character_id>/chats/<message_id>', methods=['DELETE'])
|
||||
@require_auth
|
||||
def delete_message(character_id: str, message_id: str):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user