Commit 46083d4e44fa82db114a728fcb50c0b2c9606e84
1 parent
d3de0b38
Add/update completed
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/app/pages/statements/components/busStop2/busStop2.service.ts
... | ... | @@ -33,13 +33,13 @@ export class BusStop2Service { |
33 | 33 | .catch(this.handleError); |
34 | 34 | } |
35 | 35 | update(id: number, data: string): Promise<any> { |
36 | - return this.http.post(this.url + '/update?id=' + id + '&data=' + data, {}, { headers: this.headers }) | |
36 | + return this.http.post(this.url + '/update?id=' + id, data, { headers: this.headers }) | |
37 | 37 | .toPromise() |
38 | 38 | .then(response => response.json()) |
39 | 39 | .catch(this.handleError); |
40 | 40 | } |
41 | 41 | create(data: string): Promise<any> { |
42 | - return this.http.post(this.url + '/create?data=' + data, {}, { headers: this.headers }) | |
42 | + return this.http.post(this.url + '/create', data, { headers: this.headers }) | |
43 | 43 | .toPromise() |
44 | 44 | .then(response => response.json()) |
45 | 45 | .catch(this.handleError); | ... | ... |
src/app/pages/statements/components/busStop2/busStop2.ts