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-02-22 10:04:50 +01:00
|
|
|
import { AppPreloader } from './shared/utils/app-preloader';
|
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-31 13:40:27 +01:00
|
|
|
{ path: 'projector', loadChildren: './fullscreen-projector/fullscreen-projector.module#FullscreenProjectorModule' },
|
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-02-22 10:04:50 +01:00
|
|
|
imports: [RouterModule.forRoot(routes, { preloadingStrategy: AppPreloader })],
|
|
|
|
exports: [RouterModule],
|
|
|
|
providers: [AppPreloader]
|
2018-06-13 18:34:10 +02:00
|
|
|
})
|
2018-06-19 16:55:50 +02:00
|
|
|
export class AppRoutingModule {}
|