AW-803 Refactor add
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Peter Bastiani 2020-01-28 11:37:33 +01:00
parent 05705afdfe
commit eea6bbbcb5

View File

@ -103,7 +103,7 @@ export class ItemService {
} }
postItem(item:IItem): Observable<IItem> { postItem(item:IItem): Observable<IItem> {
return this.httpClient.post<IItem>(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item); return this.httpClient.post<IItem>(`${this.ApiEndpoint()}/api/v1/items/add`,item);
} }
putItem(item:IItem): Observable<IItem> { putItem(item:IItem): Observable<IItem> {