13 lines
235 B
JavaScript
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,
|
|
};
|
|
})();
|