Skip to content

Commit

Permalink
Merge pull request #67 from mikeiken:API-fix
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Kseen715 authored Oct 21, 2024
2 parents 1ca61ae + 33c21f0 commit ef0303d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/api/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef0303d

Please sign in to comment.