Ignore:
Timestamp:
11/11/21 12:59:26 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
59329aa
Parents:
6c1585f
Message:

add location to planner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/_services/planner.service.ts

    r6c1585f rceaed42  
    99})
    1010export class PlannerService{
     11   
    1112    constructor(private httpClient: HttpClient){
    1213    }
     14
    1315    getAllPlanners():Observable<Planner[]>{
    1416        let url = "http://localhost:8080/api/planners";
     
    1618    }
    1719
    18     postInitialPlanner(planner: Planner, locationList: Location[]): Observable<Object>{     
     20    postInitialPlanner(planner: Planner): Observable<Object>{     
    1921        let url = "http://localhost:8080/api/planner/new";
    2022        return this.httpClient.post<Planner>(url, planner);
     
    3032        return this.httpClient.get<Planner>(url);
    3133    }
     34
     35
    3236}
Note: See TracChangeset for help on using the changeset viewer.