mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-24 18:40:44 +02:00
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:
@@ -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);
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user