mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 17:08:58 +01:00
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
import server from "./server.js";
|
|
import froca from "./froca.js";
|
|
|
|
async function searchForNoteIds(searchString: string) {
|
|
return await server.get<string[]>(`search/${encodeURIComponent(searchString)}`);
|
|
}
|
|
|
|
async function searchForNotes(searchString: string) {
|
|
const noteIds = await searchForNoteIds(searchString);
|
|
|
|
return await froca.getNotes(noteIds);
|
|
}
|
|
|
|
export default {
|
|
searchForNoteIds,
|
|
searchForNotes
|
|
};
|