OpenSlides/client/src/app/site/projector/projector-routing.module.ts
2019-07-30 09:53:14 +02:00

25 lines
691 B
TypeScript

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ProjectorDetailComponent } from './components/projector-detail/projector-detail.component';
import { ProjectorListComponent } from './components/projector-list/projector-list.component';
const routes: Routes = [
{
path: '',
component: ProjectorListComponent,
pathMatch: 'full'
},
{
path: 'detail/:id',
component: ProjectorDetailComponent,
data: { basePerm: 'core.can_see_projector' }
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ProjectorRoutingModule {}