waypoint visited percentage
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {Injectable} from "@angular/core";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {WaypointsEntity} from "../../interface/WaypointsEntity";
|
||||
import {newWaypoint, WaypointsEntity} from "../../interface/WaypointsEntity";
|
||||
import {catchError, throwError} from "rxjs";
|
||||
|
||||
const BASE_URL = "progetto152";
|
||||
@@ -35,7 +35,7 @@ export class WaypointService {
|
||||
return this.http.get<WaypointsEntity>(GET_WAYPOINT_BY_ID + id);
|
||||
}
|
||||
|
||||
createWaypoint(waypoint: WaypointsEntity) {
|
||||
createWaypoint(waypoint: newWaypoint) {
|
||||
return this.http.post<WaypointsEntity>(WAYPOINT, waypoint);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export class WaypointVisitedService {
|
||||
}
|
||||
|
||||
getWaypointByUserAndWaypoint(user: string, waypoint: number) {
|
||||
return this.http.get<boolean>(GET_WAYPOINT_BY_USER + user + "/" + waypoint);
|
||||
return this.http.get<boolean>(WAYPOINT_VISITED+ "/"+user + "/" + waypoint);
|
||||
}
|
||||
|
||||
createWaypoint(waypointvisited: WaypointsVisitedEntity) {
|
||||
|
||||
Reference in New Issue
Block a user