2019-01-10 15:06:10 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
2019-01-10 15:06:10 +01:00
|
|
|
import { ProjectorDetailComponent } from './components/projector-detail/projector-detail.component';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ProjectorListComponent } from './components/projector-list/projector-list.component';
|
2019-01-10 15:06:10 +01:00
|
|
|
|
|
|
|
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 {}
|