mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
Paginated With MongoDB / Create New Endpoint
change routes /combine name, add route /api/source/paginated add new endpoint source/paginated fixing table responsive create new function to handling api/source/paginated
This commit is contained in:
@@ -18,6 +18,7 @@ export type GetDocsResponse = {
|
||||
docs: Doc[];
|
||||
totalDocuments: number;
|
||||
totalPages: number;
|
||||
nextCursor: string;
|
||||
};
|
||||
|
||||
export type PromptProps = {
|
||||
@@ -28,7 +29,6 @@ export type PromptProps = {
|
||||
};
|
||||
|
||||
export type DocumentsProps = {
|
||||
documents: Doc[] | null;
|
||||
handleDeleteDocument: (index: number, document: Doc) => void;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user