UNPKG

@mieweb/wikigdrive

Version:

Google Drive to MarkDown synchronization

14 lines (11 loc) 319 B
export class SearchClientService { constructor(private authenticatedClient) { } async search(driveId, query) { if (!query) { return []; } const response = await this.authenticatedClient.fetchApi(`/api/search/${driveId}?q=${encodeURIComponent(query)}`); return await response.json(); } }