From d2c71331c52dfd082adefdeb2556374d8e4b0d48 Mon Sep 17 00:00:00 2001 From: alicia <112369864+aliiyuu@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:45:56 -0700 Subject: [PATCH] Fix apiURL path --- frontend/src/interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/interface.js b/frontend/src/interface.js index 7dfe3bc..a551c19 100644 --- a/frontend/src/interface.js +++ b/frontend/src/interface.js @@ -6,7 +6,7 @@ export async function downloadCodebase() { const url = document.getElementById('codebase-url').value; if (url.trim() === '') return; - const response = await fetch(`${local}/api/download`, { + const response = await fetch(`${apiURL}/api/download`, { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -66,7 +66,7 @@ export async function fetchChatGPTResponse(userInput) { const apiURL = 'https://syntaxsorcerer-backend.fly.dev' const codebasePath = '../../codebases'; - const response = await fetch(`${local}/api/chatgpt`, { + const response = await fetch(`${apiURL}/api/chatgpt`, { method: 'POST', headers: { 'Content-Type': 'application/json'