Compare commits
3 Commits
ece8338ac8
...
d4f6985cef
Author | SHA1 | Date | |
---|---|---|---|
d4f6985cef | |||
8e4d43ab6b | |||
a43ca627a9 |
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user