Revert console graphql endpoint pathname for tmp n8n app fix
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { makeFetchQuery } from "@probo/relay";
|
||||
|
||||
export const coreEnvironment = new Environment({
|
||||
configName: "core",
|
||||
network: Network.create(makeFetchQuery("/api/console/v1/graphql")),
|
||||
network: Network.create(makeFetchQuery("/api/console/v1/query")),
|
||||
store: new Store(new RecordSource(), {
|
||||
queryCacheExpirationTime: 1 * 60 * 1000,
|
||||
gcReleaseBufferSize: 20,
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ export class ProboApi implements ICredentialType {
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials?.server}}',
|
||||
url: '/api/console/v1/graphql',
|
||||
url: '/api/console/v1/query',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -21,7 +21,7 @@ export async function proboApiRequest(
|
||||
const options: IHttpRequestOptions = {
|
||||
method: 'POST',
|
||||
baseURL: `${credentials.server}`,
|
||||
url: '/api/console/v1/graphql',
|
||||
url: '/api/console/v1/query',
|
||||
headers: {
|
||||
Authorization: `Bearer ${credentials.apiKey}`,
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -71,7 +71,7 @@ func NewMux(
|
||||
|
||||
graphqlHandler := NewGraphQLHandler(iamSvc, proboSvc, customDomainCname, logger)
|
||||
|
||||
r.Handle("/graphql", graphqlHandler)
|
||||
r.Handle("/query", graphqlHandler)
|
||||
|
||||
r.Get(
|
||||
"/documents/signing-requests",
|
||||
|
||||
Reference in New Issue
Block a user