feat: update webview URL and frontend dist path

Changed the default webview URL from 'tables.html' to 'index.html' in main.rs to reflect the new entry point. Updated the frontend distribution path in tauri.conf.json from './web/desktop' to './web/html' to better represent the directory structure. These changes align with recent frontend reorganization.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-14 17:04:51 -03:00
parent 01d9698bfa
commit 6e78618b2e
3 changed files with 3 additions and 3 deletions

View file

@ -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(()),

View file

@ -4,7 +4,7 @@
"version": "6.0.8",
"identifier": "br.com.pragmatismo",
"build": {
"frontendDist": "./web/desktop"
"frontendDist": "./web/html"
},
"app": {
"security": {

View file

@ -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();