From 09636de2121f6e555fca601c112979648751080e Mon Sep 17 00:00:00 2001 From: wallydrag Date: Mon, 7 Jun 2021 00:07:47 +0530 Subject: [PATCH] bug fix of api endpoint --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4133521..fdf9ac7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10308,7 +10308,7 @@ data.append("yaml", fs.createReadStream(odetFile)); const url = core.getInput("staging") === 'true' ? "https://odet-staging.herokuapp.com" : "https://app.odet.cloud"; var config = { method: "post", - url: url, + url: `${url}/services`, headers: { "X-ODET-KEY": apiKey, ...data.getHeaders(), diff --git a/index.js b/index.js index 1f90745..ba64f21 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ data.append("yaml", fs.createReadStream(odetFile)); const url = core.getInput("staging") === 'true' ? "https://odet-staging.herokuapp.com" : "https://app.odet.cloud"; var config = { method: "post", - url: url, + url: `${url}/services`, headers: { "X-ODET-KEY": apiKey, ...data.getHeaders(),