feat: add getCommunityPrompts endpoint to API service

This commit is contained in:
CREDO23 2025-12-11 20:21:16 +00:00
parent f983d1f7ff
commit 1d6bfe1e29

View file

@ -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();