More bookstack integration stuff

This commit is contained in:
2025-12-11 15:49:08 -05:00
parent 7ab06b6a4c
commit a3216ba5ab
4 changed files with 89 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ export async function getLoaTypes(): Promise<LOAType[]> {
export async function getLoaPolicy(): Promise<string> {
//@ts-ignore
const res = await fetch(`${import.meta.env.VITE_DOCHOST}/api/pages/42`, {
const res = await fetch(`${addr}/loa/policy`, {
method: "GET",
credentials: 'include',
});
@@ -105,4 +105,4 @@ export async function getLoaPolicy(): Promise<string> {
} else {
return null;
}
}
}