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';
|
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: [
|
2019-03-08 10:43:54 +01:00
|
|
|
{ path: '', component: LoginMaskComponent, pathMatch: 'full' },
|
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-05-10 13:04:40 +02:00
|
|
|
{
|
|
|
|
path: 'projector',
|
|
|
|
loadChildren: './fullscreen-projector/fullscreen-projector.module#FullscreenProjectorModule',
|
|
|
|
data: { noInterruption: true }
|
|
|
|
},
|
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({
|
2019-03-13 15:16:06 +01:00
|
|
|
imports: [RouterModule.forRoot(routes, { onSameUrlNavigation: 'reload' })],
|
2019-03-04 11:45:15 +01:00
|
|
|
exports: [RouterModule]
|
2018-06-13 18:34:10 +02:00
|
|
|
})
|
2018-06-19 16:55:50 +02:00
|
|
|
export class AppRoutingModule {}
|