mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
fix : frontend route
This commit is contained in:
parent
56d5ec2d37
commit
a4f56d582b
@ -19,7 +19,7 @@ function App() {
|
|||||||
|
|
||||||
const checkHealth = async () => {
|
const checkHealth = async () => {
|
||||||
try {
|
try {
|
||||||
await axios.get('http://backend:8000/health');
|
await axios.get('http://0.0.0.0:8000/health');
|
||||||
setIsOnline(true);
|
setIsOnline(true);
|
||||||
console.log('System is online');
|
console.log('System is online');
|
||||||
} catch {
|
} catch {
|
||||||
@ -39,7 +39,7 @@ function App() {
|
|||||||
const fetchScreenshot = async () => {
|
const fetchScreenshot = async () => {
|
||||||
try {
|
try {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
const res = await axios.get(`http://backend:8000/screenshots/updated_screen.png?timestamp=${timestamp}`, {
|
const res = await axios.get(`http://0.0.0.0:8000/screenshots/updated_screen.png?timestamp=${timestamp}`, {
|
||||||
responseType: 'blob'
|
responseType: 'blob'
|
||||||
});
|
});
|
||||||
if (isMounted) {
|
if (isMounted) {
|
||||||
@ -94,7 +94,7 @@ function App() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
console.log('Sending query:', query);
|
console.log('Sending query:', query);
|
||||||
const res = await axios.post('http://backend:8000/query', {
|
const res = await axios.post('http://0.0.0.0:8000/query', {
|
||||||
query,
|
query,
|
||||||
tts_enabled: false
|
tts_enabled: false
|
||||||
});
|
});
|
||||||
@ -122,7 +122,7 @@ function App() {
|
|||||||
const handleGetScreenshot = async () => {
|
const handleGetScreenshot = async () => {
|
||||||
try {
|
try {
|
||||||
console.log('Fetching screenshot...');
|
console.log('Fetching screenshot...');
|
||||||
const res = await axios.get('http://backend:8000/screenshots/updated_screen.png');
|
const res = await axios.get('http://0.0.0.0:8000/screenshots/updated_screen.png');
|
||||||
setResponseData((prev) => ({ ...prev, screenshot: res.data.screenshot }));
|
setResponseData((prev) => ({ ...prev, screenshot: res.data.screenshot }));
|
||||||
setCurrentView('screenshot');
|
setCurrentView('screenshot');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user