Compare commits
3 Commits
d4f6985cef
...
ece8338ac8
Author | SHA1 | Date | |
---|---|---|---|
ece8338ac8 | |||
fdc7ed4c05 | |||
a83e8cb22c |
@ -22,24 +22,6 @@ 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