2018-06-13 18:34:10 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2018-09-06 07:14:55 +02:00
|
|
|
|
2018-10-16 08:08:59 +02:00
|
|
|
import { LoginWrapperComponent } from './site/login/components/login-wrapper/login-wrapper.component';
|
2018-09-06 07:14:55 +02:00
|
|
|
import { LoginMaskComponent } from './site/login/components/login-mask/login-mask.component';
|
|
|
|
import { LoginLegalNoticeComponent } from './site/login/components/login-legal-notice/login-legal-notice.component';
|
|
|
|
import { LoginPrivacyPolicyComponent } from './site/login/components/login-privacy-policy/login-privacy-policy.component';
|
2018-10-16 08:08:59 +02:00
|
|
|
import { ResetPasswordComponent } from './site/login/components/reset-password/reset-password.component';
|
|
|
|
import { ResetPasswordConfirmComponent } from './site/login/components/reset-password-confirm/reset-password-confirm.component';
|
2019-01-10 15:06:10 +01:00
|
|
|
import { FullscreenProjectorComponent } from './site/projector/components/fullscreen-projector/fullscreen-projector.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
|
2018-07-23 16:42:17 +02:00
|
|
|
/**
|
|
|
|
* Global app routing
|
|
|
|
*/
|
2018-06-13 18:34:10 +02:00
|
|
|
const routes: Routes = [
|
2018-09-06 07:14:55 +02:00
|
|
|
{
|
|
|
|
path: 'login',
|
2018-10-16 08:08:59 +02:00
|
|
|
component: LoginWrapperComponent,
|
2018-09-06 07:14:55 +02:00
|
|
|
children: [
|
|
|
|
{ path: '', component: LoginMaskComponent },
|
2018-10-16 08:08:59 +02:00
|
|
|
{ path: 'reset-password', component: ResetPasswordComponent },
|
|
|
|
{ path: 'reset-password-confirm', component: ResetPasswordConfirmComponent },
|
2018-09-06 07:14:55 +02:00
|
|
|
{ path: 'legalnotice', component: LoginLegalNoticeComponent },
|
|
|
|
{ path: 'privacypolicy', component: LoginPrivacyPolicyComponent }
|
|
|
|
]
|
|
|
|
},
|
2019-01-10 15:06:10 +01:00
|
|
|
{ path: 'projector', component: FullscreenProjectorComponent },
|
|
|
|
{ path: 'projector/:id', component: FullscreenProjectorComponent },
|
2018-08-28 11:07:10 +02:00
|
|
|
{ path: '', loadChildren: './site/site.module#SiteModule' },
|
2018-06-19 16:55:50 +02:00
|
|
|
{ path: '**', redirectTo: '' }
|
2018-06-13 18:34:10 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2018-06-16 18:05:46 +02:00
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
exports: [RouterModule]
|
2018-06-13 18:34:10 +02:00
|
|
|
})
|
2018-06-19 16:55:50 +02:00
|
|
|
export class AppRoutingModule {}
|