Fix n8n probo request options
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -44,7 +44,7 @@ export class ProboApi implements ICredentialType {
|
|||||||
test: ICredentialTestRequest = {
|
test: ICredentialTestRequest = {
|
||||||
request: {
|
request: {
|
||||||
baseURL: '={{$credentials?.server}}',
|
baseURL: '={{$credentials?.server}}',
|
||||||
url: '/api/console/v1/query',
|
url: '/api/console/v1/graphql',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export async function proboApiRequest(
|
|||||||
const options: IHttpRequestOptions = {
|
const options: IHttpRequestOptions = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
baseURL: `${credentials.server}`,
|
baseURL: `${credentials.server}`,
|
||||||
url: '/api/console/v1/query',
|
url: '/api/console/v1/graphql',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${credentials.apiKey}`,
|
Authorization: `Bearer ${credentials.apiKey}`,
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user