penambahan modal export

This commit is contained in:
2024-06-25 15:39:26 +07:00
parent e27493171e
commit 5cbd0f09dc
11 changed files with 146 additions and 638 deletions

View File

@@ -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`;