fix([2fd88f42]): correct docker networking issue for frontend API calls
This commit is contained in:
@@ -36,7 +36,7 @@ function App() {
|
|||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
setError(null);
|
setError(null);
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('http://localhost:8002/api/heatmap', {
|
const response = await axios.post('http://backend:8000/api/heatmap', {
|
||||||
filters: selectedFilters,
|
filters: selectedFilters,
|
||||||
});
|
});
|
||||||
setHeatmapData(response.data);
|
setHeatmapData(response.data);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const FileUpload: React.FC<FileUploadProps> = ({ onUploadSuccess, setIsLoading,
|
|||||||
setError(null);
|
setError(null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('http://localhost:8002/api/upload', formData, {
|
const response = await axios.post('http://backend:8000/api/upload', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'multipart/form-data',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user