Doceditor:Utils:Actions: enable internal requests
This commit is contained in:
parent
f8b86220bc
commit
b2c3cc422a
@ -77,7 +77,6 @@ export async function fileCopyAs(
|
||||
enableExternalExt,
|
||||
password,
|
||||
}),
|
||||
false,
|
||||
);
|
||||
|
||||
const file = await (await fetch(createFile)).json();
|
||||
@ -139,7 +138,6 @@ export async function createFile(
|
||||
[["Content-Type", "application/json;charset=utf-8"]],
|
||||
"POST",
|
||||
JSON.stringify({ title, templateId, formId }),
|
||||
false,
|
||||
);
|
||||
|
||||
const file = await (await fetch(createFile)).json();
|
||||
@ -311,7 +309,6 @@ export async function getUser(share?: string) {
|
||||
[share ? ["Request-Token", share] : ["", ""]],
|
||||
"GET",
|
||||
undefined,
|
||||
false,
|
||||
);
|
||||
|
||||
if (!cookie?.includes("asc_auth_key")) return undefined;
|
||||
@ -337,7 +334,6 @@ export async function getSettings(share?: string) {
|
||||
[share ? ["Request-Token", share] : ["", ""]],
|
||||
"GET",
|
||||
undefined,
|
||||
false,
|
||||
);
|
||||
|
||||
const settingsRes = await fetch(getSettings);
|
||||
@ -363,7 +359,6 @@ export async function checkFillFromDraft(
|
||||
],
|
||||
"POST",
|
||||
JSON.stringify({ fileId: templateFileId }),
|
||||
false,
|
||||
);
|
||||
|
||||
const response = await fetch(checkFillFormDraft);
|
||||
@ -389,7 +384,6 @@ export async function openEdit(
|
||||
[share ? ["Request-Token", share] : ["", ""]],
|
||||
"GET",
|
||||
undefined,
|
||||
false,
|
||||
);
|
||||
|
||||
const res = await fetch(getConfig);
|
||||
@ -452,7 +446,6 @@ export async function getEditorUrl(
|
||||
[share ? ["Request-Token", share] : ["", ""]],
|
||||
"GET",
|
||||
undefined,
|
||||
false,
|
||||
);
|
||||
|
||||
const res = await fetch(request);
|
||||
|
Loading…
Reference in New Issue
Block a user