From e70d07f651983a6160e3e167eca183c8cd98b760 Mon Sep 17 00:00:00 2001 From: duogenesis <136373989+duogenesis@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:55:57 +1100 Subject: [PATCH] Update endpoints and bump API version --- .github/workflows/publish.yml | 6 +++--- api/api.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0d9358cd..899aaeae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,10 +21,10 @@ jobs: EOF env: NODE_OPTIONS: --openssl-legacy-provider - DUO_API_URL: https://api-22szm34g7q-ue.a.run.app - DUO_CHAT_URL: wss://chat-22szm34g7q-ue.a.run.app + DUO_API_URL: https://api.duolicious.app + DUO_CHAT_URL: wss://chat.duolicious.app DUO_IMAGES_URL: https://user-images.duolicious.app - DUO_STATUS_URL: https://status-22szm34g7q-ue.a.run.app + DUO_STATUS_URL: https://status.duolicious.app - uses: cloudflare/pages-action@v1 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/api/api.tsx b/api/api.tsx index 081e2764..c91f0fa7 100644 --- a/api/api.tsx +++ b/api/api.tsx @@ -5,7 +5,7 @@ import * as _ from "lodash"; import { sessionToken } from '../kv-storage/session-token'; import { Buffer } from "buffer"; -const SUPPORTED_API_VERSIONS = [1]; +const SUPPORTED_API_VERSIONS = [2]; type ApiResponse = { ok: boolean