diff --git a/src/api/common.ts b/src/api/common.ts index efe19c8c..15c3e87a 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -3,7 +3,7 @@ import request from '../helpers/request'; export const getMetricByName = async (owner: string, metricNameMap: Map, metric: string) => { try { - return await request(`${OSS_XLAB_ENDPOINT}/open_digger/github/${owner}/${metricNameMap.get(metric)}.json`); + return await request(`${OSS_XLAB_ENDPOINT}/github/${owner}/${metricNameMap.get(metric)}.json`); } catch (error) { // the catched error being "404" means the metric file is not available so return a null if (error === ErrorCode.NOT_FOUND) { @@ -17,8 +17,8 @@ export const getMetricByName = async (owner: string, metricNameMap: Map