- Timestamp:
- 11/11/21 12:59:26 (3 years ago)
- Branches:
- master
- Children:
- 59329aa
- Parents:
- 6c1585f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/_services/planner.service.ts
r6c1585f rceaed42 9 9 }) 10 10 export class PlannerService{ 11 11 12 constructor(private httpClient: HttpClient){ 12 13 } 14 13 15 getAllPlanners():Observable<Planner[]>{ 14 16 let url = "http://localhost:8080/api/planners"; … … 16 18 } 17 19 18 postInitialPlanner(planner: Planner , locationList: Location[]): Observable<Object>{20 postInitialPlanner(planner: Planner): Observable<Object>{ 19 21 let url = "http://localhost:8080/api/planner/new"; 20 22 return this.httpClient.post<Planner>(url, planner); … … 30 32 return this.httpClient.get<Planner>(url); 31 33 } 34 35 32 36 }
Note:
See TracChangeset
for help on using the changeset viewer.