1
2
3
4
5
6
7
8
9
10
11
import { fetch } from "https://esm.town/v/std/fetch";
import { API_URL } from "https://esm.town/v/std/API_URL";
export function runVal(name, ...args) {
return fetch(`${API_URL}/v1/run/${name.replace("@", "")}`, {
method: "POST",
body: JSON.stringify({
args,
}),
}).then((r) => r.json());
}