diff --git a/ui-ngx/proxy.conf.js b/ui-ngx/proxy.conf.js index 12485801c0..71d572b924 100644 --- a/ui-ngx/proxy.conf.js +++ b/ui-ngx/proxy.conf.js @@ -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 = { diff --git a/ui-ngx/src/app/core/http/device.service.ts b/ui-ngx/src/app/core/http/device.service.ts index 6cb4a4bf07..1f4d480899 100644 --- a/ui-ngx/src/app/core/http/device.service.ts +++ b/ui-ngx/src/app/core/http/device.service.ts @@ -42,6 +42,11 @@ export class DeviceService { private http: HttpClient ) { } + public getUserDevices(pageLink: PageLink, type: string = '', config?: RequestConfig): Observable> { + return this.http.get>(`/api/user/devices${pageLink.toQuery()}&type=${type}`, + defaultHttpOptionsFromConfig(config)); + } + public getTenantDeviceInfos(pageLink: PageLink, type: string = '', config?: RequestConfig): Observable> { return this.http.get>(`/api/tenant/deviceInfos${pageLink.toQuery()}&type=${type}`,