From f0c5e02676ec7bd59232526f8586ac0c91c6cfea Mon Sep 17 00:00:00 2001 From: Satont Date: Thu, 2 May 2024 15:17:16 +0300 Subject: [PATCH] fix(landing): correct client api url --- frontend/landing/src/api/twirp-browser.ts | 12 +++---- .../landing/src/components/login/login.vue | 36 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/frontend/landing/src/api/twirp-browser.ts b/frontend/landing/src/api/twirp-browser.ts index f7dff5422..c913a5e9e 100644 --- a/frontend/landing/src/api/twirp-browser.ts +++ b/frontend/landing/src/api/twirp-browser.ts @@ -1,9 +1,9 @@ -import { TwirpFetchTransport } from '@protobuf-ts/twirp-transport'; -import { ProtectedClient, UnProtectedClient } from '@twir/api/api.client'; +import { TwirpFetchTransport } from '@protobuf-ts/twirp-transport' +import { ProtectedClient, UnProtectedClient } from '@twir/api/api.client' const transport = new TwirpFetchTransport({ - baseUrl: `${location.origin}/api/v1`, -}); + baseUrl: `${location.origin}/api-old/v1` +}) -export const browserUnProtectedClient = new UnProtectedClient(transport); -export const browserProtectedClient = new ProtectedClient(transport); +export const browserUnProtectedClient = new UnProtectedClient(transport) +export const browserProtectedClient = new ProtectedClient(transport) diff --git a/frontend/landing/src/components/login/login.vue b/frontend/landing/src/components/login/login.vue index 050c133a6..cd2fee1e6 100644 --- a/frontend/landing/src/components/login/login.vue +++ b/frontend/landing/src/components/login/login.vue @@ -1,39 +1,39 @@