localhost removed

This commit is contained in:
sumedh
2024-08-15 12:09:30 +05:30
parent aacf73151d
commit 7785a50641
2 changed files with 4 additions and 4 deletions

View File

@@ -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') {

View File

@@ -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 });