@@ -23,24 +23,25 @@ export class HttpService {
2323 createNewDataEntry ( houseInfo , addressInfo ) {
2424 const payload = JSON . stringify ( houseInfo ) ;
2525 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 ) ;
2727 }
2828
2929 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 ) ;
3132 }
3233
3334 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 ) ;
3536 }
3637
3738 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 ) ;
3940 }
4041
4142 updateDataEntry ( id , houseInfo , addressInfo ) {
4243 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 ) ;
4445 }
4546
4647 predict ( predictOption : string , houseInfo : PredictHouseInfo ) {
@@ -55,7 +56,7 @@ export class HttpService {
5556 }
5657
5758 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 ) ;
5960 }
6061
6162}
0 commit comments