diff --git a/src/graphql/fetch.ts b/src/graphql/fetch.ts index 1e07593d..26426ce4 100644 --- a/src/graphql/fetch.ts +++ b/src/graphql/fetch.ts @@ -22,7 +22,7 @@ async function query(param: { conditions: { [key: string]: unknown }; }) { const res: AxiosResponse = await axios.post( - "/graphql", + "/graphql/dashboard", { query: param.queryStr, variables: { ...param.conditions } }, { cancelToken: cancelToken(), diff --git a/src/graphql/index.ts b/src/graphql/index.ts index 79bfb67e..30a55a6e 100644 --- a/src/graphql/index.ts +++ b/src/graphql/index.ts @@ -48,7 +48,7 @@ class Graphql { public params(variablesData: unknown): AxiosPromise { return axios .post( - "/graphql", + "/graphql/dashboard", { query: query[this.queryData], variables: variablesData,