From 7de6e80f850383e110bce4b111e0e4a48676f26c Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Tue, 7 Jun 2022 15:15:16 +0400 Subject: [PATCH] use /graphql/dashboard instead of /graphql --- src/graphql/fetch.ts | 2 +- src/graphql/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,