diff --git a/neode-ui/docker/nginx-demo.conf b/neode-ui/docker/nginx-demo.conf index 2c918631..68d26294 100644 --- a/neode-ui/docker/nginx-demo.conf +++ b/neode-ui/docker/nginx-demo.conf @@ -78,8 +78,8 @@ http { } } - # Proxy AIUI API requests (web-search, claude) to backend - location /aiui/api/web-search { + # Proxy AIUI API requests (web-search, etc.) to backend + location /api/ { proxy_pass http://neode-backend:5959; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/neode-ui/mock-backend.js b/neode-ui/mock-backend.js index 8e560485..df3a3192 100755 --- a/neode-ui/mock-backend.js +++ b/neode-ui/mock-backend.js @@ -1078,6 +1078,16 @@ app.post('/aiui/api/claude/*', (req, res) => { proxyReq.end() }) +// Web search stub (no search engine configured in demo) +app.get('/api/web-search', (req, res) => { + res.json({ results: [], error: 'Web search not available in demo mode' }) +}) + +// AIUI API catch-all for unimplemented endpoints (return JSON instead of HTML) +app.all('/aiui/api/*', (req, res) => { + res.status(404).json({ error: 'Not found' }) +}) + // Health check app.get('/health', (req, res) => { res.status(200).send('healthy')