hyperpop.js/dummy.ts

11 lines
296 B
TypeScript

export async function dummy(host: string, headers: HeadersInit) {
const res = await fetch(`${host}/api/Aperture/dummy`, {
method: "POST",
headers,
});
const json = await res.json();
if (!json.isOk) {
console.error(json);
throw new Error("Tango: error desconocido");
}
}