From 1d6bfe1e29311d80746ce65db8858f9a540684a4 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 11 Dec 2025 20:21:16 +0000 Subject: [PATCH] feat: add getCommunityPrompts endpoint to API service --- surfsense_web/lib/apis/search-spaces-api.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/surfsense_web/lib/apis/search-spaces-api.service.ts b/surfsense_web/lib/apis/search-spaces-api.service.ts index 7363dc671..b7c7a4c99 100644 --- a/surfsense_web/lib/apis/search-spaces-api.service.ts +++ b/surfsense_web/lib/apis/search-spaces-api.service.ts @@ -3,6 +3,7 @@ import { type GetSearchSpacesRequest, createSearchSpaceRequest, createSearchSpaceResponse, + getCommunityPromptsResponse, getSearchSpacesRequest, getSearchSpacesResponse, } from "@/contracts/types/search-space.types"; @@ -56,6 +57,13 @@ class SearchSpacesApiService { body: parsedRequest.data, }); }; + + /** + * Get community-curated prompts for search space system instructions + */ + getCommunityPrompts = async () => { + return baseApiService.get(`/api/v1/searchspaces/prompts/community`, getCommunityPromptsResponse); + }; } export const searchSpacesApiService = new SearchSpacesApiService();