Guest User

Untitled

a guest
Feb 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ...
  2. import { AuthGuardService } from './service/auth-guard.service';
  3.  
  4. const routes: Routes = [
  5. { path: '' , redirectTo: 'login', pathMatch: 'full' },
  6. { path: 'login', component: LoginComponent },
  7. { path: 'set-token', component: AuthorizationComponent },
  8. { path: 'home' , canActivate: [AuthGuardService], component: HomeComponent },
  9. { path: 'artist/:name', canActivate: [AuthGuardService], component: ArtistComponent }
  10. ];
Add Comment
Please, Sign In to add comment