28 lines
618 B
TypeScript
28 lines
618 B
TypeScript
import { Routes } from '@angular/router';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
path: '',
|
|
redirectTo: '/dashboard',
|
|
pathMatch: 'full',
|
|
},
|
|
{
|
|
path: 'dashboard',
|
|
loadComponent: () =>
|
|
import('./components/room-map/room-map.component').then(m => m.RoomMapComponent),
|
|
title: 'Dashboard - PI_E2EEDA',
|
|
},
|
|
{
|
|
path: 'room/:id',
|
|
loadComponent: () =>
|
|
import('./components/room-details-panel/room-details-panel.component').then(
|
|
m => m.RoomDetailsPanelComponent
|
|
),
|
|
title: 'Room Details - PI_E2EEDA',
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: '/dashboard',
|
|
},
|
|
];
|