Skip to content

Commit 79d3aed

Browse files
committed
updated frontend
1 parent 7d214c4 commit 79d3aed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/src/services/api/analysisAPI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const analysisAPI = {
66
analyzeStock: async (ticker) => {
77
try {
88
// Use the StockSense AI API endpoint
9-
const aiApiUrl = import.meta.env.VITE_AI_API_URL || 'http://localhost:8001';
9+
const aiApiUrl = import.meta.env.VITE_AI_API_URL;
1010
const response = await axios.get(`${aiApiUrl}/analyze/${ticker}`);
1111
return response.data;
1212
} catch (error) {

frontend/src/services/api/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import axios from 'axios';
22

3-
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:8000/api';
3+
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
4+
45

56
const apiClient = axios.create({
67
baseURL: API_BASE_URL,

0 commit comments

Comments
 (0)