Combined the get document set endpoints (#2234)

* Combined the get document set endpoints

* removed unused function

* fixed permissioning for document sets
This commit is contained in:
hagen-danswer
2024-08-25 12:02:27 -07:00
committed by GitHub
parent e5ceb76de8
commit 205c3c3fc8
5 changed files with 9 additions and 70 deletions

View File

@@ -2,9 +2,9 @@ import { errorHandlingFetcher } from "@/lib/fetcher";
import { DocumentSet } from "@/lib/types";
import useSWR, { mutate } from "swr";
const DOCUMENT_SETS_URL = "/api/manage/admin/document-set";
const DOCUMENT_SETS_URL = "/api/manage/document-set";
const GET_EDITABLE_DOCUMENT_SETS_URL =
"/api/manage/admin/document-set?get_editable=true";
"/api/manage/document-set?get_editable=true";
export function refreshDocumentSets() {
mutate(DOCUMENT_SETS_URL);

View File

@@ -5,7 +5,6 @@ import { fetchSS } from "../utilsSS";
import { FullLLMProvider } from "@/app/admin/configuration/llm/interfaces";
import { ToolSnapshot } from "../tools/interfaces";
import { fetchToolsSS } from "../tools/fetchTools";
import { IconManifestType } from "react-icons/lib";
import {
OpenAIIcon,
AnthropicIcon,