Revert console graphql endpoint pathname for tmp n8n app fix

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-20 14:56:42 +04:00
parent a306101446
commit 4881901a73
6 changed files with 7 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ func (c *Client) doWithEndpoint(endpoint string, query string, variables map[str
}
func (c *Client) Do(query string, variables map[string]any) (*GraphQLResponse, error) {
return c.doWithEndpoint("/api/console/v1/graphql", query, variables)
return c.doWithEndpoint("/api/console/v1/query", query, variables)
}
func (c *Client) DoConnect(query string, variables map[string]any) (*GraphQLResponse, error) {
@@ -249,7 +249,7 @@ func (c *Client) executeMultipart(query string, variables map[string]any, files
}
// Create request
req, err := http.NewRequest("POST", c.baseURL+"/api/console/v1/graphql", &buf)
req, err := http.NewRequest("POST", c.baseURL+"/api/console/v1/query", &buf)
if err != nil {
return fmt.Errorf("cannot create request: %w", err)
}

View File

@@ -114,7 +114,7 @@ func waitForServer(ctx context.Context, baseURL string, timeout time.Duration) e
default:
}
req, err := http.NewRequestWithContext(ctx, "GET", baseURL+"/api/console/v1/graphql", nil)
req, err := http.NewRequestWithContext(ctx, "GET", baseURL+"/api/console/v1/query", nil)
if err != nil {
return err
}