diff --git a/src/components/chat-component/Chat.jsx b/src/components/chat-component/Chat.jsx index 813f5bb..7b651a4 100644 --- a/src/components/chat-component/Chat.jsx +++ b/src/components/chat-component/Chat.jsx @@ -63,7 +63,7 @@ function Chat() { }); function notifyEndSession(){ - let url = "http://localhost:8080/session/end-session/" + sessionStorage.getItem('sessionCode'); + let url = "https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/end-session/" + sessionStorage.getItem('sessionCode'); axios.get(url) .then(function (response) { console.log(response.data); diff --git a/src/components/end-session-component/EndSession.jsx b/src/components/end-session-component/EndSession.jsx index 506f9e4..4efd3de 100644 --- a/src/components/end-session-component/EndSession.jsx +++ b/src/components/end-session-component/EndSession.jsx @@ -28,8 +28,8 @@ function EndSession() { const templateId = "template_feo851p"; // TODO: change to azure endpoint - let transcriptUrl = 'http://localhost:8080/email/transcript/' + sessionId - let dateUrl = 'http://localhost:8080/email/date/' + sessionId + let transcriptUrl = 'https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/email/transcript/' + sessionId + let dateUrl = 'https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/email/date/' + sessionId try { const response = await axios.get(transcriptUrl); diff --git a/src/components/enter-code-component/EnterCode.jsx b/src/components/enter-code-component/EnterCode.jsx index 521e9fb..f2f3094 100644 --- a/src/components/enter-code-component/EnterCode.jsx +++ b/src/components/enter-code-component/EnterCode.jsx @@ -20,7 +20,7 @@ function EnterCode() { const [alertOpen, setAlertOpen] = useState(false); const joinSession = () => { - let joinUrl = "http://localhost:8080/session/join/" + sessionInput; + let joinUrl = "https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/join/" + sessionInput; axios.get(joinUrl) .then(function (response) { diff --git a/src/helper-components/pdf-manager-component/PdfManager.jsx b/src/helper-components/pdf-manager-component/PdfManager.jsx index 839db51..e16826c 100644 --- a/src/helper-components/pdf-manager-component/PdfManager.jsx +++ b/src/helper-components/pdf-manager-component/PdfManager.jsx @@ -52,7 +52,7 @@ function PdfFileManager() { const fetchPdfById = async (pdfId) => { try { - const response = await Axios.get(`http://localhost:8080/files/${pdfId}`, { + const response = await Axios.get(`https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/${pdfId}`, { responseType: 'blob' // Expect a binary response }); console.log(response); @@ -78,7 +78,7 @@ function PdfFileManager() { formData.append("session", sessionCode); // Send the file to the backend - Axios.post('http://localhost:8080/files/session_add_pdf', formData) + Axios.post('https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/session_add_pdf', formData) .then((response) => { // File uploaded successfully console.log('File uploaded successfully:', response.data); @@ -114,7 +114,7 @@ function PdfFileManager() { if (selectedPdf) { return ( setPdfViewerInstance(instance)} /> ); @@ -133,7 +133,7 @@ function PdfFileManager() { const formData = new FormData(); formData.append("file", blob, `updated_${selectedPdf.name}`); - Axios.put(`http://localhost:8080/files/update/${selectedPdf.id}`, formData) + Axios.put(`https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/update/${selectedPdf.id}`, formData) .then(response => { console.log('File updated successfully:', response.data); setAlertMessage("File changes saved successfully"); diff --git a/src/helper-components/start-session-button-component/StartSessionButton.jsx b/src/helper-components/start-session-button-component/StartSessionButton.jsx index 11ce305..280b0f4 100644 --- a/src/helper-components/start-session-button-component/StartSessionButton.jsx +++ b/src/helper-components/start-session-button-component/StartSessionButton.jsx @@ -11,7 +11,7 @@ function StartSessionButton() { e.preventDefault(); //TODO: replace with hosted address - axios.get("http://localhost:8080/session/new-session") + axios.get("https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/new-session") .then(function (response) { let sessionCode = response.data.sessionCode; sessionStorage.setItem('sessionCode', sessionCode); diff --git a/src/websocket.js b/src/websocket.js index 959bd73..c18185d 100644 --- a/src/websocket.js +++ b/src/websocket.js @@ -18,7 +18,7 @@ export function connectWebsocket(userRole, sessionID) { sessionId = sessionID; client = new Client({ - brokerURL: "ws://localhost:8080/callhub", + brokerURL: "ws://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/callhub", onConnect: () => { // subscribe to messages client.subscribe(`/topic/message-${role}/${sessionId}`, (message) => {