next-ucap-messenger/projects/ucap-webmessenger-app/src/app/pages/account/account-routing.page.module.ts

21 lines
560 B
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginPageComponent } from './components/login.page.component';
2019-12-15 13:49:35 +00:00
import { AppAutoLoginGuard } from '@app/guards/auto-login.guard';
2019-09-18 06:02:21 +00:00
const routes: Routes = [
{ path: '', redirectTo: '/account/login', pathMatch: 'full' },
{
path: 'login',
2019-12-15 13:49:35 +00:00
component: LoginPageComponent,
canActivate: [AppAutoLoginGuard]
2019-09-18 06:02:21 +00:00
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AppAccountRoutingPageModule {}