Rename API to get all files, minor UI updates

This commit is contained in:
sabaimran
2025-01-20 13:30:10 -08:00
parent 849b7c7af6
commit d36f235da5
3 changed files with 6 additions and 6 deletions

View File

@@ -381,8 +381,8 @@ const UploadFiles: React.FC<{
<DialogHeader>
<DialogTitle>Build Your Knowledge Base</DialogTitle>
<DialogDescription>
Add your files to supercharge Khoj`&apos;`s AI with your knowledge. Get
instant, personalized answers powered by your own documents and data.
Add context for your Khoj knowledge base.
Quickly search and get personalized answers from your documents.
</DialogDescription>
</DialogHeader>
<div
@@ -576,7 +576,7 @@ export default function Search() {
const fetchFiles = async (currentPageNumber: number) => {
try {
const url = `api/content/all?page=${currentPageNumber}`;
const url = `api/content/files?page=${currentPageNumber}`;
const response = await fetch(url);
if (!response.ok) throw new Error("Failed to fetch files");