2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import { SiteComponent } from './site.component';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { AuthGuard } from '../core/core-services/auth-guard.service';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Routung to all OpenSlides apps
|
|
|
|
*
|
|
|
|
* TODO: Plugins will have to append to the Routes-Array
|
|
|
|
*/
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: SiteComponent,
|
|
|
|
children: [
|
2018-09-06 07:14:55 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './common/os-common.module#OsCommonModule'
|
2018-09-06 07:14:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'agenda',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './agenda/agenda.module#AgendaModule'
|
2018-09-06 07:14:55 +02:00
|
|
|
},
|
2018-07-31 15:46:55 +02:00
|
|
|
{
|
|
|
|
path: 'assignments',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './assignments/assignments.module#AssignmentsModule'
|
2018-07-31 15:46:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mediafiles',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './mediafiles/mediafiles.module#MediafilesModule'
|
2018-07-31 15:46:55 +02:00
|
|
|
},
|
2018-09-06 07:14:55 +02:00
|
|
|
{
|
|
|
|
path: 'motions',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './motions/motions.module#MotionsModule'
|
2018-09-06 07:14:55 +02:00
|
|
|
},
|
2018-07-31 15:46:55 +02:00
|
|
|
{
|
|
|
|
path: 'settings',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './config/config.module#ConfigModule'
|
2018-07-31 15:46:55 +02:00
|
|
|
},
|
2018-09-06 07:14:55 +02:00
|
|
|
{
|
|
|
|
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'
|
2018-11-09 13:44:39 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'history',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './history/history.module#HistoryModule'
|
2019-01-10 15:06:10 +01:00
|
|
|
},
|
|
|
|
{
|
2019-01-24 16:25:50 +01:00
|
|
|
path: 'projectors',
|
2019-03-04 11:45:15 +01:00
|
|
|
loadChildren: './projector/projector.module#ProjectorModule'
|
2018-09-06 07:14:55 +02:00
|
|
|
}
|
2018-08-28 11:07:10 +02:00
|
|
|
],
|
|
|
|
canActivateChild: [AuthGuard]
|
2018-07-23 16:42:17 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class SiteRoutingModule {}
|