docs: Revamp README and UI documentation; enhance CLI usage instructions and API configuration details

This commit is contained in:
rUv
2025-06-07 13:40:52 +00:00
parent b15e2b7182
commit 6dd89f2ada
4 changed files with 602 additions and 13 deletions

View File

@@ -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