mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-15 18:25:18 +02:00
feat: add getCommunityPrompts endpoint to API service
This commit is contained in:
parent
f983d1f7ff
commit
1d6bfe1e29
1 changed files with 8 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue