diff --git a/src/main.rs b/src/main.rs index 436d0fae8..920b19a82 100644 --- a/src/main.rs +++ b/src/main.rs @@ -295,7 +295,7 @@ async fn main() -> std::io::Result<()> { match WebviewWindowBuilder::new( app, "main", - tauri::WebviewUrl::App("tables.html".into()), + tauri::WebviewUrl::App("index.html".into()), ) .build() { Ok(_window) => Ok(()), diff --git a/tauri.conf.json b/tauri.conf.json index b35446746..d5cd9b0c2 100644 --- a/tauri.conf.json +++ b/tauri.conf.json @@ -4,7 +4,7 @@ "version": "6.0.8", "identifier": "br.com.pragmatismo", "build": { - "frontendDist": "./web/desktop" + "frontendDist": "./web/html" }, "app": { "security": { diff --git a/web/html/index.html b/web/html/index.html index a1ba41040..d325f91e4 100644 --- a/web/html/index.html +++ b/web/html/index.html @@ -1156,7 +1156,7 @@ await stopVoiceSession(); async function startVoiceSession(){ if(!currentSessionId)return; try{ -const r=await fetch("/api/voice/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:currentSessionId,user_id:currentUserId})}),d=await r.json(); +const r=await fetch("th/voice/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:currentSessionId,user_id:currentUserId})}),d=await r.json(); if(d.token){ await connectToVoiceRoom(d.token); startVoiceRecording();