2019-01-10 15:06:10 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { ProjectorListComponent } from './components/projector-list/projector-list.component';
|
|
|
|
import { ProjectorDetailComponent } from './components/projector-detail/projector-detail.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
2019-01-24 16:25:50 +01:00
|
|
|
path: '',
|
2019-03-08 10:43:54 +01:00
|
|
|
component: ProjectorListComponent,
|
|
|
|
pathMatch: 'full'
|
2019-01-10 15:06:10 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'detail/:id',
|
2019-04-05 12:33:34 +02:00
|
|
|
component: ProjectorDetailComponent,
|
|
|
|
data: { basePerm: 'core.can_see_projector' }
|
2019-01-10 15:06:10 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class ProjectorRoutingModule {}
|