This commit is contained in:
2023-05-06 12:31:10 +02:00
parent 25dab35612
commit 2b97f42949
3 changed files with 57 additions and 4 deletions

View File

@@ -30,6 +30,10 @@ export class WaypointVisitedService {
return this.http.get<WaypointsVisitedEntity[]>(GET_WAYPOINT_BY_USER + user);
}
getWaypointByUserAndWaypoint(user: string, waypoint: number) {
return this.http.get<boolean>(GET_WAYPOINT_BY_USER + user + "/" + waypoint);
}
createWaypoint(waypointvisited: WaypointsVisitedEntity) {
return this.http.post<WaypointsVisitedEntity>(WAYPOINT_VISITED, waypointvisited);
}