From 8135181e165ae23e7c79af7ddd2b4214b3cee192 Mon Sep 17 00:00:00 2001 From: "Will (Newby) Atlas" Date: Wed, 19 Jul 2023 08:24:11 -0600 Subject: [PATCH] Make default DEPLOY_API_ENDPOINTs include /api --- action/index.js | 2 +- src/utils/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action/index.js b/action/index.js index 40276b55..ede8663f 100644 --- a/action/index.js +++ b/action/index.js @@ -11,7 +11,7 @@ import { } from "./deps.js"; // The origin of the server to make Deploy requests to. -const ORIGIN = process.env.DEPLOY_API_ENDPOINT ?? "https://dash.deno.com"; +const ORIGIN = process.env.DEPLOY_API_ENDPOINT ?? "https://dash.deno.com/api"; async function main() { const projectId = core.getInput("project", { required: true }); diff --git a/src/utils/api.ts b/src/utils/api.ts index 7602b861..658239f0 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -50,7 +50,7 @@ export class API { static fromToken(token: string) { const endpoint = Deno.env.get("DEPLOY_API_ENDPOINT") ?? - "https://dash.deno.com"; + "https://dash.deno.com/api"; return new API(`Bearer ${token}`, endpoint); }