v1.3.27: fix Help modal — add -L flag, demo-login docs

This commit is contained in:
Naeel
2026-05-03 06:46:33 +03:00
parent 9a16ab16c7
commit a6c52074e6
37 changed files with 1179 additions and 2497 deletions
+8 -1
View File
@@ -1,4 +1,11 @@
// API-вызовы и авторизация
/* api.js — HTTP-утилиты */
function authHeaders() {
return {
'X-Auth-Token': localStorage.getItem('auth_token') || '',
'X-Auth-Env': localStorage.getItem('auth_env') || 'test'
};
}
async function getJSON(url) {
const r = await fetch(url, { headers: authHeaders() });