mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +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,
|
type GetSearchSpacesRequest,
|
||||||
createSearchSpaceRequest,
|
createSearchSpaceRequest,
|
||||||
createSearchSpaceResponse,
|
createSearchSpaceResponse,
|
||||||
|
getCommunityPromptsResponse,
|
||||||
getSearchSpacesRequest,
|
getSearchSpacesRequest,
|
||||||
getSearchSpacesResponse,
|
getSearchSpacesResponse,
|
||||||
} from "@/contracts/types/search-space.types";
|
} from "@/contracts/types/search-space.types";
|
||||||
|
|
@ -56,6 +57,13 @@ class SearchSpacesApiService {
|
||||||
body: parsedRequest.data,
|
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();
|
export const searchSpacesApiService = new SearchSpacesApiService();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue