diff --git a/cgap/static/apply.js b/cgap/static/apply.js index c7c0928..7c2efc8 100644 --- a/cgap/static/apply.js +++ b/cgap/static/apply.js @@ -48,7 +48,7 @@ app.component('LinkedAutofillInput', { methods: { fetchOrganizations(query) { try { - const url = `/api/organizations` + const url = `/poc-demo/api/organizations` var request = new XMLHttpRequest(); request.open('GET', url, true); diff --git a/cgap/static/organization.js b/cgap/static/organization.js index 119013e..d8bfb06 100644 --- a/cgap/static/organization.js +++ b/cgap/static/organization.js @@ -37,11 +37,11 @@ app.component('Organization', { computed: {}, methods: { generateProposalViewUrl(id) { - return `/proposal/${id}`; + return `/poc-demo/proposal/${id}`; }, loadOrganization(query) { try { - const url = `/api/organizations/${this.organizationId}` + const url = `/poc-demo/api/organizations/${this.organizationId}` var request = new XMLHttpRequest(); request.open('GET', url, true); @@ -61,7 +61,7 @@ app.component('Organization', { }, loadProposals(query) { try { - const url = `/api/organizations/${this.organizationId}/proposals` + const url = `/poc-demo/api/organizations/${this.organizationId}/proposals` var request = new XMLHttpRequest(); request.open('GET', url, true); diff --git a/cgap/static/proposal.js b/cgap/static/proposal.js index 53b71a8..f135753 100644 --- a/cgap/static/proposal.js +++ b/cgap/static/proposal.js @@ -48,7 +48,7 @@ app.component('Proposal', { methods: { loadProposal(query) { try { - const url = `/api/proposals/${this.proposalId}` + const url = `/poc-demo/api/proposals/${this.proposalId}` var request = new XMLHttpRequest(); request.open('GET', url, true); @@ -67,7 +67,7 @@ app.component('Proposal', { } catch {} }, generateOrganizationViewUrl(id) { - return `/organization/${id}`; + return `/poc-demo/organization/${id}`; } }, diff --git a/cgap/static/search.js b/cgap/static/search.js index 65f848a..c3a42c6 100644 --- a/cgap/static/search.js +++ b/cgap/static/search.js @@ -76,7 +76,7 @@ app.component('ProposalSearch', { methods: { fetchProposals(query) { try { - const url = `/api/proposals` + const url = `/poc-demo/api/proposals` var request = new XMLHttpRequest(); request.open('GET', url, true); @@ -99,10 +99,10 @@ app.component('ProposalSearch', { this.fetchProposals(event.target.value); }, generateProposalViewUrl(id) { - return `/proposal/${id}`; + return `/poc-demo/proposal/${id}`; }, generateOrganizationViewUrl(id) { - return `/organization/${id}`; + return `/poc-demo/organization/${id}`; } },