@@ -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 }
0 commit comments