diff --git a/src/views/pages/KsGitRepos.vue b/src/views/pages/KsGitRepos.vue index 5c9d42d..1ab8a7b 100644 --- a/src/views/pages/KsGitRepos.vue +++ b/src/views/pages/KsGitRepos.vue @@ -171,7 +171,7 @@ initFilters(); const fetchCodeRepoInfo = async () => { try { - const response = await axios.get('http://localhost:8082/fe-api/ks_git_repos'); + const response = await axios.get('/fe-api/ks_git_repos'); //codeRepoInfo.value = response.data; codeRepoInfo.value = getCustomDatewithAllResponse(response.data); console.log(codeRepoInfo.value); @@ -192,7 +192,7 @@ const getCustomDatewithAllResponse = (data) => { const ingestGitRepo = (repo) => { axios - .get(`http://localhost:8082/test/ingest_repo/${repo.repoName}`) + .get(`/test/ingest_repo/${repo.repoName}`) .then((response) => { showPopup('Ingestion started', 'info'); toast.add({ severity: 'success', summary: 'Ingestion Summary', detail: 'Repository Ingestion Started', life: 3000 }); @@ -216,7 +216,7 @@ const startPollingStatus = (repoName) => { const checkIngestionStatus = (repoName) => { axios - .get(`http://localhost:8082/test/check_ingestion_status/${repoName}`) + .get(`/test/check_ingestion_status/${repoName}`) .then((response) => { const data = response.data; if (data.status === 'INGESTED') { diff --git a/src/views/pages/KsNewGitRepoForm.vue b/src/views/pages/KsNewGitRepoForm.vue index 860b7ba..e7cc7a1 100644 --- a/src/views/pages/KsNewGitRepoForm.vue +++ b/src/views/pages/KsNewGitRepoForm.vue @@ -90,7 +90,7 @@ const submitForm = async () => { formDataToSend.append('minChunkSizeToEmbed', formData.value.minChunkSizeToEmbed); try { - const response = await axios.post('http://localhost:8082/fe-api/ks_git_repos/uploadRepo', formDataToSend); + const response = await axios.post('/fe-api/ks_git_repos/uploadRepo', formDataToSend); console.log('Submit successful:', response.data); toast.add({ severity: 'success', summary: 'Success', detail: 'Repository submitted successfully', life: 3000 });