13 lines
324 B
TypeScript
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");
|
|
}
|
|
}
|