control device
This commit is contained in:
1 parent
49d37ee7e1
commit
7b9935585a
4 files changed
+142
-88
No files matched your search
@@ -50,4 +50,14 @@ export class DeviceService {
|
||||
});
|
||||
return this.http.get<any>(url, { headers });
|
||||
}
|
||||
|
||||
deviceSwitch(data): Observable<any> {
|
||||
const endpoint = `/devices`;
|
||||
const url = `${BASE_URL}${endpoint}/device-switch`;
|
||||
const headers = new HttpHeaders({
|
||||
"Content-Type": "application/json",
|
||||
"x-api-key": "j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT",
|
||||
});
|
||||
return this.http.post<any>(url, data, { headers });
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user