Ignore:
Timestamp:
11/26/21 20:07:18 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
1ad8e64
Parents:
e29cc2e
Message:

disabling to add location if it already exists in the planner

File:
1 edited

Legend:

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

    re29cc2e r8d391a1  
    5555        return this.httpClient.get<Location[]>(url + "?plannerId=" + id);
    5656    }
     57
     58    getAllLocationIdsForPlanner(id:number):Observable<number[]>{
     59        let url = "http://localhost:8080/api/planner/locationIds";
     60        return this.httpClient.get<number[]>(url + "?plannerId="+id);
     61    }
    5762   
    5863}
Note: See TracChangeset for help on using the changeset viewer.