Compare commits

..

3 Commits

Author SHA1 Message Date
d4f6985cef Fix misspelled TIU_TEMPLATE_SET_ITEMS 2023-04-29 18:28:24 -04:00
8e4d43ab6b Cache-aware schedule view 2023-04-29 18:24:19 -04:00
a43ca627a9 Cache API 2023-04-29 18:23:20 -04:00

View File

@ -22,6 +22,24 @@ export async function call(cid, body) {
})).json();
}
/*
export async function call(cid, method, ...params) {
return await (await fetch('/v1/vista/' + cid, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ method: method, params: params, id: Date.now() })
})).json();
}
export async function callctx(cid, context, method, ...params) {
return await (await fetch('/v1/vista/' + cid, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ method: method, params: params, context: context, id: Date.now() })
})).json();
}
*/
export async function serverinfo(cid) {
return await (await fetch('/v1/vista/' + cid + '/serverinfo', {
method: 'POST',