Ignore:
Timestamp:
10/28/20 22:06:48 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
993189e
Parents:
1454207
Message:

Change methods & add error controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/shared/data.service.ts

    r1454207 r6f203af  
    160160    //PharmacyHead POST
    161161    insertPharmacyHead(head: IPharmacyHead) : Observable<IPharmacyHead> {
    162         return this.http.post<IPharmacyHead>(this.basePharmacyHead, head)
     162        return this.http.post<IPharmacyHead>(this.basePharmacyHead + '/add', head)
    163163                   .pipe(
    164164                        map((data) => {
     
    189189    //PharmacyHead DELETE
    190190    deletePharmacyHead(id: string) : Observable<boolean> {
    191         return this.http.delete<boolean>(this.basePharmacyHead + '/' + id)
     191        return this.http.delete<boolean>(this.basePharmacyHead + '/delete/' + id)
    192192                   .pipe(catchError(this.handleError));
    193193    }
Note: See TracChangeset for help on using the changeset viewer.