From 93662e4679085cb32eca000ae3ac4f8380ddb51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Thu, 11 Apr 2024 12:53:52 +0200 Subject: [PATCH] fix: fix api connection --- govtool/frontend/src/services/API.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/govtool/frontend/src/services/API.ts b/govtool/frontend/src/services/API.ts index 1815ecbc2..2e084a29b 100644 --- a/govtool/frontend/src/services/API.ts +++ b/govtool/frontend/src/services/API.ts @@ -7,12 +7,12 @@ const TIMEOUT_IN_SECONDS = 30 * 1000; // 1000 ms is 1 s then its 10 s const BASE_URL = import.meta.env.VITE_BASE_URL; export const API = axios.create({ - baseURL: `${BASE_URL}api`, + baseURL: `${BASE_URL}/api`, timeout: TIMEOUT_IN_SECONDS, }); export const METADATA_VALIDATION_API = axios.create({ - baseURL: `${BASE_URL}metadata-validation`, + baseURL: `${BASE_URL}/metadata-validation`, timeout: TIMEOUT_IN_SECONDS, });