OpenSlides/client/src/app/site/site-routing.module.ts

67 lines
1.9 KiB
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SiteComponent } from './site.component';
import { AuthGuard } from '../core/core-services/auth-guard.service';
/**
* Routung to all OpenSlides apps
*
* TODO: Plugins will have to append to the Routes-Array
*/
const routes: Routes = [
{
path: '',
component: SiteComponent,
children: [
{
path: '',
2019-03-04 11:45:15 +01:00
loadChildren: './common/os-common.module#OsCommonModule'
},
{
path: 'agenda',
2019-03-04 11:45:15 +01:00
loadChildren: './agenda/agenda.module#AgendaModule'
},
{
path: 'assignments',
2019-03-04 11:45:15 +01:00
loadChildren: './assignments/assignments.module#AssignmentsModule'
},
{
path: 'mediafiles',
2019-03-04 11:45:15 +01:00
loadChildren: './mediafiles/mediafiles.module#MediafilesModule'
},
{
path: 'motions',
2019-03-04 11:45:15 +01:00
loadChildren: './motions/motions.module#MotionsModule'
},
{
path: 'settings',
2019-03-04 11:45:15 +01:00
loadChildren: './config/config.module#ConfigModule'
},
{
path: 'users',
2019-03-04 11:45:15 +01:00
loadChildren: './users/users.module#UsersModule'
2018-10-15 10:12:47 +02:00
},
{
path: 'tags',
2019-03-04 11:45:15 +01:00
loadChildren: './tags/tag.module#TagModule'
},
{
path: 'history',
2019-03-04 11:45:15 +01:00
loadChildren: './history/history.module#HistoryModule'
},
{
path: 'projectors',
2019-03-04 11:45:15 +01:00
loadChildren: './projector/projector.module#ProjectorModule'
}
],
canActivateChild: [AuthGuard]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class SiteRoutingModule {}