Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const routes: Routes = [
- { path: '', pathMatch: 'full', component: HomeComponent },
- { path: 'home', component: HomeComponent },
- { path: 'signup', component: SignupComponent },
- { path: 'login', component: LoginComponent },
- { path: 'posts', component: PostAllComponent, canActivate: [ AuthGuard ] },
- { path: 'posts/edit/:id', component: PostEditComponent, canActivate: [ AuthGuard ], resolve: { post: SinglePostResolver } },
- { path: 'posts/details/:id', component: PostDetailsComponent, canActivate: [ AuthGuard ], resolve: { post: SinglePostResolver} },
- { path: 'posts/create', component: PostCreateComponent, canActivate: [ AuthGuard ] },
- { path: '**', component: NotFoundComponent }
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement