mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
import server from "./server.js";
|
|
import froca from "./froca.js";
|
|
|
|
async function searchForNoteIds(searchString) {
|
|
return await server.get('search/' + encodeURIComponent(searchString));
|
|
}
|
|
|
|
async function searchForNotes(searchString) {
|
|
const noteIds = await searchForNoteIds(searchString);
|
|
|
|
return await froca.getNotes(noteIds);
|
|
}
|
|
|
|
export default {
|
|
searchForNoteIds,
|
|
searchForNotes
|
|
}
|