fix: send X-Sync-mode header to silverbullet

This commit is contained in:
max_richter 2023-08-19 23:14:23 +02:00
parent 5e4fcfbdaa
commit 09fea14644

View File

@ -30,6 +30,7 @@ export async function getDocuments(): Promise<Document[]> {
const headers = new Headers();
headers.append("Accept", "application/json");
headers.append("X-Sync-Mode", "true");
log.debug("fetching all documents");
const response = await fetch(`${SILVERBULLET_SERVER}/index.json`, {
headers: headers,