mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 16:11:10 +10:00
8 lines
275 B
TypeScript
8 lines
275 B
TypeScript
import api from '@/lib/api-client';
|
|
import { IPageSearch } from '@/features/search/types/search.types';
|
|
|
|
export async function searchPage(query: string): Promise<IPageSearch[]> {
|
|
const req = await api.post<IPageSearch[]>('/search', { query });
|
|
return req.data as any;
|
|
}
|