FarmMapsLib/projects/common/src/fm/common-routing.module.ts

34 lines
1005 B
TypeScript
Raw Normal View History

2020-01-08 10:37:37 +00:00
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {AuthCallbackComponent} from './components/auth-callback/auth-callback.component';
import {AuthCallbackGuard} from './components/auth-callback/auth-callback.guard';
import {NavBarGuard} from './services/nav-bar-guard.service';
import {FullScreenGuard} from './services/full-screen-guard.service';
import {SessionClearedComponent} from './components/session-cleared/session-cleared.component';
import {NotFoundComponent} from './components/not-found/not-found.component';
const routes = [
{
path: 'cb',
2020-05-09 07:14:16 +00:00
component: AuthCallbackComponent
2020-01-08 10:37:37 +00:00
},
{
path: 'loggedout',
component: SessionClearedComponent,
canActivate: [FullScreenGuard],
},
{
path: '**', component: NotFoundComponent,
canActivate: [NavBarGuard]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class AppCommonRoutingModule {
}