2018-06-13 18:34:10 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2020-08-12 17:15:59 +02:00
|
|
|
import { Route, RouterModule } from '@angular/router';
|
2018-09-06 07:14:55 +02:00
|
|
|
|
|
|
|
import { LoginLegalNoticeComponent } from './site/login/components/login-legal-notice/login-legal-notice.component';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { LoginMaskComponent } from './site/login/components/login-mask/login-mask.component';
|
2018-09-06 07:14:55 +02:00
|
|
|
import { LoginPrivacyPolicyComponent } from './site/login/components/login-privacy-policy/login-privacy-policy.component';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { LoginWrapperComponent } from './site/login/components/login-wrapper/login-wrapper.component';
|
2018-10-16 08:08:59 +02:00
|
|
|
import { ResetPasswordConfirmComponent } from './site/login/components/reset-password-confirm/reset-password-confirm.component';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { ResetPasswordComponent } from './site/login/components/reset-password/reset-password.component';
|
2020-06-11 14:39:14 +02:00
|
|
|
import { UnsupportedBrowserComponent } from './site/login/components/unsupported-browser/unsupported-browser.component';
|
2018-06-13 18:34:10 +02:00
|
|
|
|
2018-07-23 16:42:17 +02:00
|
|
|
/**
|
|
|
|
* Global app routing
|
|
|
|
*/
|
2020-08-12 17:15:59 +02:00
|
|
|
const routes: Route[] = [
|
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 },
|
2020-06-11 14:39:14 +02:00
|
|
|
{ path: 'privacypolicy', component: LoginPrivacyPolicyComponent },
|
|
|
|
{ path: 'unsupported-browser', component: UnsupportedBrowserComponent }
|
2018-09-06 07:14:55 +02:00
|
|
|
]
|
|
|
|
},
|
2019-05-10 13:04:40 +02:00
|
|
|
{
|
|
|
|
path: 'projector',
|
2019-07-01 11:23:33 +02:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./fullscreen-projector/fullscreen-projector.module').then(m => m.FullscreenProjectorModule),
|
2019-05-10 13:04:40 +02:00
|
|
|
data: { noInterruption: true }
|
|
|
|
},
|
2019-07-01 11:23:33 +02:00
|
|
|
{ path: '', loadChildren: () => import('./site/site.module').then(m => m.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 {}
|