mirror of
https://github.com/ruvnet/RuView.git
synced 2026-04-28 05:59:32 +00:00
docs: Revamp README and UI documentation; enhance CLI usage instructions and API configuration details
This commit is contained in:
parent
b15e2b7182
commit
6dd89f2ada
4 changed files with 602 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// API Configuration for WiFi-DensePose UI
|
||||
|
||||
export const API_CONFIG = {
|
||||
BASE_URL: window.location.origin,
|
||||
BASE_URL: 'http://localhost:8000', // FastAPI backend port
|
||||
API_VERSION: '/api/v1',
|
||||
WS_PREFIX: 'ws://',
|
||||
WSS_PREFIX: 'wss://',
|
||||
|
|
@ -105,7 +105,8 @@ export function buildWsUrl(endpoint, params = {}) {
|
|||
? API_CONFIG.WSS_PREFIX
|
||||
: API_CONFIG.WS_PREFIX;
|
||||
|
||||
const host = window.location.host;
|
||||
// Use localhost:8000 for WebSocket connections to match FastAPI backend
|
||||
const host = 'localhost:8000';
|
||||
let url = `${protocol}${host}${endpoint}`;
|
||||
|
||||
// Add query parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue