hyperpop.js/dummy.ts

14 lines
324 B
TypeScript
Raw Normal View History

2021-11-15 21:57:36 +00:00
export async function dummy(host: string, token: string) {
const res = await fetch(`${host}/api/Aperture/dummy`, {
2021-09-23 00:17:35 +00:00
method: "POST",
headers: {
accesstoken: token,
},
});
const json = await res.json();
if (!json.isOk) {
console.error(json);
throw new Error("Tango: error desconocido");
}
}