diff --git a/client/src/api/chat.api.ts b/client/src/api/chat.api.ts index 935473b..edd1a95 100644 --- a/client/src/api/chat.api.ts +++ b/client/src/api/chat.api.ts @@ -1,6 +1,8 @@ import { ChatBody } from "../types/chatbot/chatbot.types"; import api from "./interceptor.api"; +// Fetch all chats for a user +// @limit: Number of loaded chats. Default number is 5. export const fetchChats = async (limit: number) => { try { if (!limit) { diff --git a/server/chat/views.py b/server/chat/views.py index ef3cc45..4219c75 100644 --- a/server/chat/views.py +++ b/server/chat/views.py @@ -9,7 +9,6 @@ from rest_framework.response import Response from rest_framework import status -# Create your views here. class CreateUserView(generics.CreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer