mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 06:01:14 +10:00
feat: search
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user