in ui/src/app/services/explore.service.ts [71:87]
async getSummary(path: string): Promise<SummaryResult> {
path = this.normalizePath(path);
try {
const json = await requestJson(`/summary/${path}`)
const title = json.path as string;
const cost = json.cost as Cost;
const size = json.size as Size;
return { title, cost, size } as SummaryResult;
} catch (error) {
console.error(error);
}
return {} as SummaryResult;
}