|
|
|
@ -23,6 +23,7 @@ import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component'; |
|
|
|
import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component'; |
|
|
|
import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component'; |
|
|
|
import { TbIotHubSearchPageComponent } from './iot-hub-search-page.component'; |
|
|
|
import { TbIotHubItemResolverComponent } from './iot-hub-item-resolver.component'; |
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
{ |
|
|
|
@ -138,6 +139,23 @@ const routes: Routes = [ |
|
|
|
icon: 'person' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: ':itemId', |
|
|
|
component: TbIotHubItemResolverComponent, |
|
|
|
data: { |
|
|
|
auth: [Authority.TENANT_ADMIN], |
|
|
|
title: 'iot-hub.item-detail' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: ':itemId/preview', |
|
|
|
component: TbIotHubItemResolverComponent, |
|
|
|
data: { |
|
|
|
auth: [Authority.TENANT_ADMIN], |
|
|
|
title: 'iot-hub.item-preview', |
|
|
|
preview: true |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|