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 497 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 760 days ago
export async function main(endpoint: string) {
const res = await fetch(endpoint)
return { status: res.status, statusText: res.statusText }
}
Submitted by admin 760 days ago