diff --git a/pkg/service/soundtouchweb/handlers_tts.go b/pkg/service/soundtouchweb/handlers_tts.go index 81c4fa8..9c00258 100644 --- a/pkg/service/soundtouchweb/handlers_tts.go +++ b/pkg/service/soundtouchweb/handlers_tts.go @@ -38,7 +38,7 @@ func hostOnly(raw string) string { // HandleAPISpeakText synthesizes and plays text on a device. The Web UI talks // to speakers directly for most controls, but TTS synthesis (Google Cloud) and // the Bose app_key live in the AfterTouch service, so this proxies to the -// service's /setup/tts/speak endpoint, targeting the device by its IP/host. +// service's /api/setup/tts/speak endpoint, targeting the device by its IP/host. func (app *WebApp) HandleAPISpeakText(w http.ResponseWriter, r *http.Request) { deviceID := chi.URLParam(r, "id") @@ -118,7 +118,7 @@ func (app *WebApp) HandleAPISpeakText(w http.ResponseWriter, r *http.Request) { return } - upstream, err := http.NewRequestWithContext(r.Context(), http.MethodPost, serviceURL+"/setup/tts/speak", bytes.NewReader(body)) + upstream, err := http.NewRequestWithContext(r.Context(), http.MethodPost, serviceURL+"/api/setup/tts/speak", bytes.NewReader(body)) if err != nil { app.sendError(w, "Failed to build TTS request", http.StatusInternalServerError) return