device service getUserDevices
This commit is contained in:
parent
d076917986
commit
c82bcbafd7
@ -13,8 +13,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
const forwardUrl = "http://localhost:8080";
|
||||
const wsForwardUrl = "ws://localhost:8080";
|
||||
const forwardUrl = "https://thingsboard.cloud/";
|
||||
const wsForwardUrl = "wss://thingsboard.cloud/";
|
||||
const ruleNodeUiforwardUrl = forwardUrl;
|
||||
|
||||
const PROXY_CONFIG = {
|
||||
|
||||
@ -42,6 +42,11 @@ export class DeviceService {
|
||||
private http: HttpClient
|
||||
) { }
|
||||
|
||||
public getUserDevices(pageLink: PageLink, type: string = '', config?: RequestConfig): Observable<PageData<Device>> {
|
||||
return this.http.get<PageData<Device>>(`/api/user/devices${pageLink.toQuery()}&type=${type}`,
|
||||
defaultHttpOptionsFromConfig(config));
|
||||
}
|
||||
|
||||
public getTenantDeviceInfos(pageLink: PageLink, type: string = '',
|
||||
config?: RequestConfig): Observable<PageData<DeviceInfo>> {
|
||||
return this.http.get<PageData<DeviceInfo>>(`/api/tenant/deviceInfos${pageLink.toQuery()}&type=${type}`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user