export async function main(endpoint: string) {
try {
const res = await fetch(endpoint);
return { status: res.status, statusText: res.statusText };
} catch (e) {
return { status: -1, statusText: e.toString() };
}
}
Submitted by admin 466 days ago
export async function main(endpoint: string) {
try {
const res = await fetch(endpoint)
return { status: res.status, statusText: res.statusText }
} catch (e) {
return { status: -1, statusText: e.toString()}
}
}
Submitted by admin 729 days ago
export async function main(endpoint: string) {
const res = await fetch(endpoint)
return { status: res.status, statusText: res.statusText }
}
Submitted by admin 729 days ago