placeholdered bookstack integration

This commit is contained in:
2025-12-11 11:38:11 -05:00
parent 8cdbb99d6f
commit dcb4720129
3 changed files with 25 additions and 3 deletions

View File

@@ -87,4 +87,22 @@ export async function getLoaTypes(): Promise<LOAType[]> {
} else {
return null;
}
};
export async function getLoaPolicy(): Promise<string> {
//@ts-ignore
const res = await fetch(`${import.meta.env.VITE_DOCHOST}/api/pages/42`, {
method: "GET",
credentials: 'include',
});
if (res.ok) {
const out = res.json();
console.log(out);
if (!out) {
return null;
}
return out;
} else {
return null;
}
}