mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
FE: update authorization method to use API_TOKEN setting
This commit is contained in:
+1
-1
@@ -1591,7 +1591,7 @@ function restartBackend() {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
url: "/logs/add-to-execution-queue",
|
url: "/logs/add-to-execution-queue",
|
||||||
headers: {
|
headers: {
|
||||||
"Authorization": "Bearer " + getApiToken(),
|
"Authorization": "Bearer " + getSetting("API_TOKEN"),
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
|
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
|
||||||
|
|||||||
Reference in New Issue
Block a user