penambahan modal export

This commit is contained in:
fuzi_fauzia committed 2024-06-25 15:39:26 +07:00
1 parent e27493171e
commit 5cbd0f09dc
11 files changed
+146 -638

No files matched your search

@@ -31,6 +31,21 @@ export class DeviceService {
return this.http.get<any>(url, { headers });
}
getDeviceDataById(id): Observable<any> {
const endpoint = `/devices`;
const params = new URLSearchParams({
page: "1",
limit: "100",
building_id: id
});
const url = `${BASE_URL}${endpoint}?${params.toString()}`;
const headers = new HttpHeaders({
"Content-Type": "application/json",
"x-api-key": "j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT",
});
return this.http.get<any>(url, { headers });
}
getDeviceLIst(): Observable<any> {
const endpoint = `/devices`;
const url = `${BASE_URL}${endpoint}/list`;