@vulog/aima-search
Version:
10 lines (7 loc) • 323 B
text/typescript
import { Client } from '@vulog/aima-client';
import { Search } from './types';
export const search = async (client: Client, query: string) => {
return client
.get<Search[]>(`/boapi/proxy/search/fleets/${client.clientOptions.fleetId}/search/${encodeURIComponent(query)}`)
.then(({ data }) => data);
};