Revert back to graphql endpoint
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -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/query", query, variables)
|
||||
return c.doWithEndpoint("/api/console/v1/graphql", 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/query", &buf)
|
||||
req, err := http.NewRequest("POST", c.baseURL+"/api/console/v1/graphql", &buf)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot create request: %w", err)
|
||||
}
|
||||
|
||||
@@ -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/query", nil)
|
||||
req, err := http.NewRequestWithContext(ctx, "GET", baseURL+"/api/console/v1/graphql", nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user