integrasi actual cost
This commit is contained in:
@@ -78,4 +78,24 @@ export class CostManagementService {
|
||||
});
|
||||
return this.http.get<any>(url, { headers });
|
||||
}
|
||||
|
||||
putRealCost(data: any, id: any): Observable<any> {
|
||||
const endpoint = `/real-cost`;
|
||||
const url = `${BASE_URL}${endpoint}/${id}`;
|
||||
const headers = new HttpHeaders({
|
||||
'Content-Type': 'application/json',
|
||||
'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT'
|
||||
});
|
||||
return this.http.put<any>(url, data, { headers });
|
||||
}
|
||||
|
||||
getBUildingById(id: any): Observable<any> {
|
||||
const endpoint = `/building`;
|
||||
const url = `${BASE_URL}${endpoint}/${id}`;
|
||||
const headers = new HttpHeaders({
|
||||
'Content-Type': 'application/json',
|
||||
'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT'
|
||||
});
|
||||
return this.http.get<any>(url, { headers });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user