This commit is contained in:
Le Deng
2017-03-10 17:32:55 -05:00
parent 0c37fb08c1
commit eee2c66ecf
7 changed files with 79 additions and 22 deletions

View File

@@ -19,6 +19,16 @@ export class ShippingService {
return this.http.post(url, JSON.stringify(shipping), {headers : tokenHeader});
}
getUserShippingList() {
let url = this.serverPath+"/shipping/getUserShippingList";
let tokenHeader = new Headers ({
'Content-Type': 'application/json',
'x-auth-token' : localStorage.getItem("xAuthToken")
});
return this.http.get(url, {headers : tokenHeader});
}
removeShipping(id: number) {
let url = this.serverPath+"/shipping/remove";