Skip to content

Commit 65f32be

Browse files
committed
Changes for deployment
1 parent 735d43c commit 65f32be

File tree

19 files changed

+59
-59
lines changed

19 files changed

+59
-59
lines changed

src/components/Apply/LoadApply.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Vue.use(VueRouter)
110110
var token = 'JWT ' + this.$cookies.get('token')
111111
var formAccept = new FormData()
112112
formAccept.append('applyId', id)
113-
this.$http.post('http://localhost:8000/api/v1/check_submition', formAccept, { headers:
113+
this.$http.post('https://api2-datame.herokuapp.com/api/v1/check_submition', formAccept, { headers:
114114
{ Authorization: token }
115115
}).then((result) => {
116116
this.permissions = String (result.data.message)
@@ -127,7 +127,7 @@ Vue.use(VueRouter)
127127
},
128128
getOffer(offerId){
129129
var token = 'JWT ' + this.$cookies.get('token')
130-
this.$http.get('http://localhost:8000/api/v1/offer?offerId=' + offerId,{ headers:
130+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/offer?offerId=' + offerId,{ headers:
131131
{ Authorization: token }
132132
}).then((result) => {
133133
this.offertodl = result.data,
@@ -144,7 +144,7 @@ Vue.use(VueRouter)
144144
var token = 'JWT ' + this.$cookies.get('token')
145145
var formAccept = new FormData()
146146
formAccept.append('idApply', id)
147-
this.$http.post('http://localhost:8000/api/v1/accept', formAccept, { headers:
147+
this.$http.post('https://api2-datame.herokuapp.com/api/v1/accept', formAccept, { headers:
148148
{ Authorization: token }
149149
}).then((result) => {
150150
alert("Successfully accepted apply")
@@ -155,7 +155,7 @@ Vue.use(VueRouter)
155155
156156
deleteApplication(applicationId) {
157157
var token = 'JWT ' + this.$cookies.get('token')
158-
this.$http.delete('http://localhost:8000/api/v2/application/' + applicationId, { headers: { Authorization: token }}).then((result) => {
158+
this.$http.delete('https://api2-datame.herokuapp.com/api/v2/application/' + applicationId, { headers: { Authorization: token }}).then((result) => {
159159
if (result.data.code == '200') {
160160
alert(this.$t('delete_app_success'))
161161
}

src/components/Curriculum/CreateCurriculum.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
}, mounted: function () {
1515
var token = 'JWT ' + this.$cookies.get('token')
16-
this.$http.get('http://localhost:8000/api/v1/cv',{ headers:
16+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/cv',{ headers:
1717
{ Authorization: token }
1818
}).then((result) => {
1919
this.items = result.data

src/components/Curriculum/CreateItemSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default {
118118
}
119119
else{
120120
var token = 'JWT ' + this.$cookies.get('token')
121-
const baseURI = 'http://localhost:8000/api/v1/item'
121+
const baseURI = 'https://api2-datame.herokuapp.com/api/v1/item'
122122
const formData = new FormData();
123123
formData.append('name', this.item.name);
124124
formData.append('secid', Number(this.secid));

src/components/Curriculum/CreateSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
}
3131
}, mounted: function () {
3232
var token = 'JWT ' + this.$cookies.get('token')
33-
this.$http.get('http://localhost:8000/api/v1/section_names',{ headers:
33+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/section_names',{ headers:
3434
{ Authorization: token }
3535
}).then((result) => {
3636
for(var i = 0, size = result.data.length; i < size ; i++){
@@ -42,7 +42,7 @@ export default {
4242
onSubmit(evt) {
4343
evt.preventDefault()
4444
var token = 'JWT ' + this.$cookies.get('token')
45-
const baseURI = 'http://localhost:8000/api/v1/section'
45+
const baseURI = 'https://api2-datame.herokuapp.com/api/v1/section'
4646
const formData = new FormData();
4747
formData.append('name', this.section.name);
4848
this.$http.post(baseURI, formData, { headers: { Authorization: token }})

src/components/HelloWorld.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
},
1717
mounted: function () {
1818
var token = 'JWT ' + this.$cookies.get('token')
19-
this.$http.get('http://localhost:8000/api/v1/helloworld', { headers:
19+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/helloworld', { headers:
2020
{ Authorization: token }
2121
}).then((result) => {
2222
this.msg = result.data.saludo

src/components/UserPlan/DisplayCurrentUserPlan.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
},
1919
mounted: function(){
2020
var token = 'JWT ' + this.$cookies.get('token')
21-
this.$http.get('http://localhost:8000/api/v2/currentUserPlan',{ headers:
21+
this.$http.get('https://api2-datame.herokuapp.com/api/v2/currentUserPlan',{ headers:
2222
{ Authorization: token }
2323
}).then((result) => {
2424
this.userPlan = result.data

src/components/UserPlan/ReceivePaypalUserPlanPayment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
var payerID = paypal_response[2].split("=")[1];
4141
this.wasPaymenetAccepted = true;
4242
43-
processPaypalUserPlanPaymentUrl = 'http://localhost:8000/api/v1/pagos/accept_paypal_userPlan_payment?paymentId=' + paymentId +
43+
processPaypalUserPlanPaymentUrl = 'https://api2-datame.herokuapp.com/api/v1/pagos/accept_paypal_userPlan_payment?paymentId=' + paymentId +
4444
'&token=' + token_paypal + '&PayerID=' + payerID;
4545
4646
this.$http.get(processPaypalUserPlanPaymentUrl, { headers: { Authorization: token } })

src/components/UserPlan/UserPlanForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
onSubmit(evt) {
3535
evt.preventDefault()
3636
var token = 'JWT ' + this.$cookies.get('token')
37-
const baseURI = 'http://localhost:8000/api/v2/payUserPlan'
37+
const baseURI = 'https://api2-datame.herokuapp.com/api/v2/payUserPlan'
3838
const formData = new FormData();
3939
formData.append('nMonths', this.userPlanForm.nMonths);
4040
this.$http.post(baseURI, formData, { headers: { Authorization: token }})
4141
.then((result) => {
4242
if(result.data.userplan_pk != null){
43-
this.$http.get('http://localhost:8000/api/v1/pagos/paypal_userPlan_payment?userplan_pk=' + result.data.userplan_pk,
43+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/pagos/paypal_userPlan_payment?userplan_pk=' + result.data.userplan_pk,
4444
{ headers: { Authorization: token } })
4545
.then((result) => {
4646
this.redirect_url = result.data.redirect_url

src/pages/admin_offers/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
mounted: function() {
7676
var token = "JWT " + this.$cookies.get("token");
7777
this.$http
78-
.get("http://localhost:8000/api/v2/admin/offers", {
78+
.get("https://api2-datame.herokuapp.com/api/v2/admin/offers", {
7979
headers: { Authorization: token }
8080
})
8181
.then(result => {
@@ -92,7 +92,7 @@ export default {
9292
9393
if (confirm) {
9494
this.$http.delete(
95-
"http://localhost:8000/api/v2/admin/delete_offer/" + offer_id,
95+
"https://api2-datame.herokuapp.com/api/v2/admin/delete_offer/" + offer_id,
9696
{
9797
headers: {
9898
Authorization: token}}).then((result) => {

src/pages/applications/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default {
177177
}
178178
179179
this.$http
180-
.get("http://localhost:8000/api/v1/apply", {
180+
.get("https://api2-datame.herokuapp.com/api/v1/apply", {
181181
headers: { Authorization: token }
182182
})
183183
.then(result => {
@@ -195,7 +195,7 @@ export default {
195195
this.idDataScientist = value;
196196
var token = 'JWT ' + this.$cookies.get('token')
197197
this.$http
198-
.get("http://localhost:8000/api/v1/dataScientist?dataScientistId=" + this.idDataScientist, {
198+
.get("https://api2-datame.herokuapp.com/api/v1/dataScientist?dataScientistId=" + this.idDataScientist, {
199199
headers: { Authorization: token }
200200
})
201201
.then(result => {
@@ -207,7 +207,7 @@ export default {
207207
this.photo = this.user.photo;
208208
this.address = this.user.address;
209209
});
210-
this.$http.get('http://localhost:8000/api/v1/cv?dataScientistId=' + this.idDataScientist,{ headers:
210+
this.$http.get('https://api2-datame.herokuapp.com/api/v1/cv?dataScientistId=' + this.idDataScientist,{ headers:
211211
{ Authorization: token }
212212
}).then((result) => {
213213
this.dss = result.data
@@ -235,7 +235,7 @@ export default {
235235
formData.append("file", this.submitForm.file);
236236
formData.append("offerId", this.idOffer);
237237
this.$http
238-
.post("http://localhost:8000/api/v1/submit", formData, {
238+
.post("https://api2-datame.herokuapp.com/api/v1/submit", formData, {
239239
headers: { Authorization: token }
240240
})
241241
.then(result => {

0 commit comments

Comments
 (0)