@@ -23,24 +23,25 @@ export class HttpService {
23
23
createNewDataEntry ( houseInfo , addressInfo ) {
24
24
const payload = JSON . stringify ( houseInfo ) ;
25
25
const payload2 = JSON . stringify ( addressInfo ) ;
26
- return this . http . post ( environment . NODE_HOST + 'newDataEntry' , { house : payload , address : payload2 } , this . httpOptions ) ;
26
+ return this . http . post ( environment . NODE_HOST + '/ newDataEntry' , { house : payload , address : payload2 } , this . httpOptions ) ;
27
27
}
28
28
29
29
getDataFromDatabase ( id ) {
30
- return this . http . post ( environment . NODE_HOST + 'getData' , { num : id } , this . httpOptions ) ;
30
+ console . log ( environment . NODE_HOST )
31
+ return this . http . post ( environment . NODE_HOST + '/getData' , { num : id } , this . httpOptions ) ;
31
32
}
32
33
33
34
getUniqueDataFromDatabase ( id ) {
34
- return this . http . post ( environment . NODE_HOST + 'getUniqueData' , { id : id } , this . httpOptions ) ;
35
+ return this . http . post ( environment . NODE_HOST + '/ getUniqueData' , { id : id } , this . httpOptions ) ;
35
36
}
36
37
37
38
deleteDataFromDatabase ( id ) {
38
- return this . http . post ( environment . NODE_HOST + 'deleteData' , { id : id } , this . httpOptions ) ;
39
+ return this . http . post ( environment . NODE_HOST + '/ deleteData' , { id : id } , this . httpOptions ) ;
39
40
}
40
41
41
42
updateDataEntry ( id , houseInfo , addressInfo ) {
42
43
const payload = JSON . stringify ( houseInfo ) ;
43
- return this . http . post ( environment . NODE_HOST + 'updateDataEntry' , { id : id , data : houseInfo , addressInfo : addressInfo } , this . httpOptions ) ;
44
+ return this . http . post ( environment . NODE_HOST + '/ updateDataEntry' , { id : id , data : houseInfo , addressInfo : addressInfo } , this . httpOptions ) ;
44
45
}
45
46
46
47
predict ( predictOption : string , houseInfo : PredictHouseInfo ) {
@@ -55,7 +56,7 @@ export class HttpService {
55
56
}
56
57
57
58
getCoordinates ( address1 , city , state , zipcode ) {
58
- return this . http . post ( environment . NODE_HOST + 'geocode' , { address1 : address1 , city : city , state : state , zipcode : zipcode } , this . httpOptions ) ;
59
+ return this . http . post ( environment . NODE_HOST + '/ geocode' , { address1 : address1 , city : city , state : state , zipcode : zipcode } , this . httpOptions ) ;
59
60
}
60
61
61
62
}
0 commit comments