From b65e7cc88af3417ad1248093220e49d8bcf19560 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 14 Nov 2025 17:04:51 -0300 Subject: [PATCH] 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. --- src/main.rs | 2 +- tauri.conf.json | 2 +- web/html/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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();