hyperpop.js/dummy.ts
2021-11-15 18:57:50 -03:00

13 lines
324 B
TypeScript

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