FE: update authorization method to use API_TOKEN setting

This commit is contained in:
Jokob @NetAlertX
2026-01-11 03:16:41 +00:00
parent c8c70d27ff
commit 63222f4503

View File

@@ -1591,7 +1591,7 @@ function restartBackend() {
method: "POST",
url: "/logs/add-to-execution-queue",
headers: {
"Authorization": "Bearer " + getApiToken(),
"Authorization": "Bearer " + getSetting("API_TOKEN"),
"Content-Type": "application/json"
},
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),