hyperpop.js/dummy.ts
2021-09-22 21:17:48 -03:00

15 lines
347 B
TypeScript

import { HOST } from "./common.js";
export async function dummy(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");
}
}