From 33c21f074991af7e3dfb4eb85b4ecca50dbccaa7 Mon Sep 17 00:00:00 2001 From: o6ez9na Date: Mon, 21 Oct 2024 22:15:25 +0300 Subject: [PATCH] fix --- frontend/src/components/api/instance.js | 2 +- .../src/components/main-page/Garden/SearchBlock/SearchBlock.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/api/instance.js b/frontend/src/components/api/instance.js index b2756be6..2959abfa 100644 --- a/frontend/src/components/api/instance.js +++ b/frontend/src/components/api/instance.js @@ -10,7 +10,7 @@ import axios from 'axios' const Instance = axios.create({ - baseURL: 'http://homelab.kerasi.ru/api/v1', + baseURL: 'http://django:8000/api/v1', timeout: 5000, headers: { 'Content-Type': 'application/json', diff --git a/frontend/src/components/main-page/Garden/SearchBlock/SearchBlock.js b/frontend/src/components/main-page/Garden/SearchBlock/SearchBlock.js index 0899c182..7e41fb15 100644 --- a/frontend/src/components/main-page/Garden/SearchBlock/SearchBlock.js +++ b/frontend/src/components/main-page/Garden/SearchBlock/SearchBlock.js @@ -22,7 +22,7 @@ export default function SearchBlock({ onSelectItem }) { const fetchData = async () => { try { setLoading(true); - const response = await Instance.get('/garder/?format=json') + const response = await Instance.get('/garden/?format=json') setData(response.data); } catch (err) { setError(err);