2019-01-18 18:03:45 +01:00
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import { UserListingComponent } from './listing/user-listing.component';
|
2020-02-03 16:53:25 +01:00
|
|
|
|
import { AdminAuthGuard } from '@app/core/admin-auth-guard.service';
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
2020-02-03 16:53:25 +01:00
|
|
|
|
{ path: '', component: UserListingComponent, canActivate: [AdminAuthGuard] },
|
2019-01-18 18:03:45 +01:00
|
|
|
|
// { path: ':id', component: UserProfileComponent }
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|
2020-02-03 16:53:25 +01:00
|
|
|
|
export class UserRoutingModule { }
|