2026-01-16 22:53:04 +01:00

13 lines
235 B
JavaScript

// public/assets/http.js
/* English comments: shared JSON fetch with auth refresh */
(function () {
async function apiJson(path, opts = {}) {
return window.Api.request(path, opts);
}
window.Http = {
apiJson,
};
})();