Skip to content

Commit

Permalink
Fix apiURL path
Browse files Browse the repository at this point in the history
  • Loading branch information
aliiyuu authored Aug 14, 2024
1 parent 426f2f2 commit d2c7133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit d2c7133

Please sign in to comment.