20 lines
592 B
TypeScript
20 lines
592 B
TypeScript
import { NgModule } from "@angular/core";
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
import { AuthGuard } from "@app/core/auth-guard.service";
|
|
import { UserListingComponent } from "./listing/user-listing.component";
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: UserListingComponent,
|
|
canActivate: [AuthGuard]
|
|
},
|
|
{ path: '**', loadChildren: () => import('@common/modules/page-not-found/page-not-found.module').then(m => m.PageNotFoundModule) },
|
|
]
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class UsersRoutingModule { }
|