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